I have a textbox on a form and am setting the [optional] value in this textbox. The value is a date and is set to a property. This property is then used as a parameter value for a stored procedure. Now, the date value is optional on the user form, so how can I get this date to be a null value in the database since the sql server table allows null values for this date field. Thanks
aspx file code:
dim o_cls as new classname
o_cls.StartDate = txtTheDate.Text
vb file code:
Public Property StartDate() As Date
Get
Return _startdt
End Get
Set(ByVal value As Date)
_startdt = value
End Set
End Property
regards,
Brian
aspx file code:
dim o_cls as new classname
o_cls.StartDate = txtTheDate.Text
vb file code:
Public Property StartDate() As Date
Get
Return _startdt
End Get
Set(ByVal value As Date)
_startdt = value
End Set
End Property
regards,
Brian