i want to set calendar extender property set to be enable false. i want to restrict user do not allow to type any thing on that text box(calendar Extender)
how to set read only property for that calendar extender.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Prabu RPosted Dec 27, 2012, 12:39 AM
Try as below,
<asp:TextBox ID="DateFrom" runat="server" Width="100px" ForeColor="Black" contentEditable="false">---asp:TextBox>
<asp:Image ID="Image2" runat="server" ImageUrl="~/Images/Calendar_scheduleHS.png" />
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="DateFrom" PopupButtonID="Image2"Format="MMM d yyyy" CssClass="MyCalendar">
cc1:CalendarExtender>