E
Esperanza
Hello dotnet experts !
I need to insert a null value, into a datetime field if the user dosen't
enter one.
I crash everytme I tried.
What can I do ??
Thanks in advance !!
Esperanza
if (this.txtDatePrescrip.Text.Equals("")){
this.appAjustement.Parameters["@DatePrescrip"].Value = null;
}
else
{this.appAjustement.Parameters["@DatePrescrip"].Value =
this.txtDatePrescrip.Text;
}
I need to insert a null value, into a datetime field if the user dosen't
enter one.
I crash everytme I tried.
What can I do ??
Thanks in advance !!
Esperanza
if (this.txtDatePrescrip.Text.Equals("")){
this.appAjustement.Parameters["@DatePrescrip"].Value = null;
}
else
{this.appAjustement.Parameters["@DatePrescrip"].Value =
this.txtDatePrescrip.Text;
}