I amusing ajax calender extender on textbox and the date is null after postback
i have set read only to textbox and i want to set read only and value will not be null .How?
plz reply me
AJAX Calendar Extender Textbox Values Null After Posyback
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Iftikar HussainRank #423 · 5.9K reputationPosted Aug 8, 2013, 3:28 AM EDT
Actually the issue is while you declared readonly=true for the textbox (server control), you will be not able to read the value in your code behind if it is set by client side. So you remove readonly=true from the textbox and in your code behind add this
adding html readonly attribute instead of server readonly
TxtBxDate.Attributes.Add("readonly", "readonly");
Regards,
Iftikar