ASP.NET Calendar - Date picker clear - Server side

Click on the calendar image near the textbox.
Choose a date then clear it using the second image near the textbox.

    Select date

Check also the client side clear example.

ASP.NET
<ASP:TextBox runat="server" ID="txtDate"></ASP:TextBox>

<obout:Calendar runat="server" ID="Calendar1"
                         DatePickerMode="true"
                         TextBoxId="txtDate">
</obout:Calendar>

<asp:ImageButton Src="images/DeleteBtn.gif" Id="imgClear" runat="server" OnClick="imgClear_Click" />

<script runat="server">
protected void imgClear_Click(object sender, EventArgs e)
{
    Calendar1.SelectedDate = new DateTime(0);
}
</script>    

"We have purchased the obout suite of controls and have used it in our web apps. It has worked great in many apps giving them a great look and feel and extremely versatile."

Kaydee Dwarak
Grocers Supply

Random testimonial   All testimonials