Rank: Newbie Groups: Member
Joined: 1/7/2012 Posts: 4
|
Hi sir,
I have more than 10 datepicker on a webform, after the user have selected the date, I need to clear it to "" or null.
How can I do on javascript and in codebehind (vb)
Thank you
|
Rank: Newbie Groups: Member
Joined: 1/7/2012 Posts: 4
|
For Codebehind :
Dim dt As Date = Nothing DatePicker1.VisibleDate = dt DatePicker1.SelectedDate = dt (this clear the datepicker)
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Set SelectedDate to DateTime.MinValue.
Thanks
|