Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Put blank date or null into dataset
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Put blank date or null into dataset
Miscellaneous
Thread ID:
00709402
Message ID:
00709402
Views:
37
If a user doesn't fill in a date textbox on my ASP.NET form, I would like to put a blank date or a null into the dataset when the user clicks save. This is my current code
dsClinserv.Tables["cresult"].Rows[0]["date_in"] = Convert.ToDateTime(this.txtStart.Text).Date;
If tried dsClinserv.Tables["cresult"].Rows[0]["date_in"] = null; but this gives me an error.
Next
Reply
Map
View

Click here to load this message in the networking platform