Foros del Web » Programación para mayores de 30 ;) » .NET »

duda con funcion iff para variables

Estas en el tema de duda con funcion iff para variables en el foro de .NET en Foros del Web. hola q tal amigos del foro ....tengo 1 nueva duda tengo este parametro ..... d insercion Cita: <MM:Insert runat="server" CommandText='<%# "INSERT INTO dbo.fecha (fecha) VALUES ...
  #1 (permalink)  
Antiguo 26/04/2008, 11:09
 
Fecha de Ingreso: marzo-2008
Mensajes: 286
Antigüedad: 16 años, 1 mes
Puntos: 1
duda con funcion iff para variables

hola q tal amigos del foro ....tengo 1 nueva duda
tengo este parametro ..... d insercion

Cita:
<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>
y el fecha ingreso lo saco d esta concatenacion

Cita:
Sub Page_Load(sender as Object, e as EventArgs)
dim fechaingreso as string
:
:
:
fechaingreso = ddlDay.SelectedValue &"/"& ddlMonth.SelectedValue &"/"& ddlYear.SelectedValue
Parameter Name="@fecha" Value='<%#IIf(fechaingreso <> Nothing), fechaingreso, "") %>' Type="DateTime" />

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
  #2 (permalink)  
Antiguo 28/04/2008, 09:20
 
Fecha de Ingreso: marzo-2008
Mensajes: 286
Antigüedad: 16 años, 1 mes
Puntos: 1
Re: duda con funcion iff para variables

alguna ayuda??
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 08:07.