I have a web form which several date
fields in it, I am using Ajax
calender for the user to enter the date, I want to restrict the user from typing in extra info other than the date or even not being able to type anything in the textbox apart the value from the calender extender. I am using ASP.NET, VB.NET and SQL Server 2008 database
My date format is dd-MMM-yy
I tried:
Enable = false
but it is not saving the date to database
Below is a sample of my code:
<asp:TextBox ID="TextBox5" runat="server" Width="150px" style="margin-top: 0px"
ReadOnly="False" CausesValidation="True"></asp:TextBox>
<asp:CalendarExtender ID="TextBox5_CalendarExtender" runat="server" Format="dd-MMM-yy" PopupButtonID="ImageButton1" TargetControlID="TextBox5">
</asp:CalendarExtender>
Appreciate your help
Thank you