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
Loading
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.
Iftikar HussainPosted Aug 8, 2013, 7:28 AM
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