<asp:TextBox ID="TextBox3" runat="server" ReadOnly="True" ></asp:TextBox>
 <asp:CalendarExtender ID="CalendarExtender2" TargetControlID="TextBox3"
                            runat="server">

I have use text box and calender

Recommended Answers

Instead of using the ReadOnly="True" property ... how about using the Enabled="False" property?

Jump to Post

All 2 Replies

Instead of using the ReadOnly="True" property ... how about using the Enabled="False" property?

Another option would be to fire a javascript to set the ReadOnly property to "False" after the validation of the form, but before actually submitting the form.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.