tengo este parametro ..... d insercion
Cita:
y el fecha ingreso lo saco d esta concatenacion<MM:Insert
runat="server"
CommandText='<%# "INSERT INTO dbo.fecha (fecha) VALUES (@fecha)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_cn1") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_cn1") %>'
Expression='<%# Request.Form("MM_insert") = "form1" %>'
CreateDataSet="false"
Debug="true"
>
<Parameters>
<Parameter Name="@fecha" Value='<%#IIf(fechaingreso <> Nothing), fechaingreso, "") %>' Type="DateTime" />
</Parameters>
</MM:Insert>
runat="server"
CommandText='<%# "INSERT INTO dbo.fecha (fecha) VALUES (@fecha)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_cn1") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_cn1") %>'
Expression='<%# Request.Form("MM_insert") = "form1" %>'
CreateDataSet="false"
Debug="true"
>
<Parameters>
<Parameter Name="@fecha" Value='<%#IIf(fechaingreso <> Nothing), fechaingreso, "") %>' Type="DateTime" />
</Parameters>
</MM:Insert>
Cita:
Parameter Name="@fecha" Value='<%#IIf(fechaingreso <> Nothing), fechaingreso, "") %>' Type="DateTime" />Sub Page_Load(sender as Object, e as EventArgs)
dim fechaingreso as string
:
:
:
fechaingreso = ddlDay.SelectedValue &"/"& ddlMonth.SelectedValue &"/"& ddlYear.SelectedValue
dim fechaingreso as string
:
:
:
fechaingreso = ddlDay.SelectedValue &"/"& ddlMonth.SelectedValue &"/"& ddlYear.SelectedValue
como debo d ingresar mi valor fecha ingreso en el iff.....
Mi problema es q no se como nombrar en la funcion iif
lo q hice fue esto