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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prabu R8 reputationPosted Dec 26, 2012, 7:39 PM EST
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>