Stop popup ajax calendar extender on demand
How do I disable ajax calender extender when textbox is set to readonly=true
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
Khargesh RajputRank #616 · 3.9K reputationPosted Mar 27, 2015, 3:30 AM EDT
we are setting PopupButtonid for calender by defalut to use on textbox
here we can change it from code behind based on condition as for hiddenfield
Azaad Abbas127 reputationPosted Mar 27, 2015, 3:39 AM EDT
Khargesh RajputRank #616 · 3.9K reputationPosted Mar 27, 2015, 3:55 AM EDT
in code behind when you type
CalendarExtender1. it will show
PopupButtonID
If throw error then add new dll 4.5 of ajxcontrol
Azaad Abbas127 reputationPosted Mar 27, 2015, 4:31 AM EDT
Khargesh RajputRank #616 · 3.9K reputationPosted Mar 27, 2015, 6:25 AM EDT
Try input tag or button with visible false instead of label to popupbuttonid
Azaad Abbas127 reputationPosted Mar 27, 2015, 10:14 PM EDT
Cannot implicitly convert type 'System.Web.UI.WebControls.Button' to 'string'
and also with hidden button not working.
Khargesh RajputRank #616 · 3.9K reputationPosted Mar 27, 2015, 10:17 PM EDT
set
txtcheckdate.Attributes.Add("readonly", "readonly");
where you want to disable calender
Azaad Abbas127 reputationPosted Mar 27, 2015, 10:24 PM EDT
Azaad Abbas127 reputationPosted Mar 27, 2015, 10:31 PM EDT
Khargesh RajputRank #616 · 3.9K reputationPosted Mar 27, 2015, 10:36 PM EDT
where you dont want calender on textbox in code behind
another solution may be you can use two panels with different textbox
but use calender for only one textbox
and when you want to show calender visible true for first panel else visible true for second panel