Dear Friends,
i am using some date controls like start Date & End Date in my Web Form with Ajax Calendar extender,
but somehow on DropDown Postback event the value inside the Date controls gets lost and i have to re-enter the value again which is not good as per User.
and dont want user to edit the date controls only select the particular Date...so it should be read Only(non-Editable).
Pl reply,
Regards,
Aamir
Loading
Blocked AccountPosted Jul 6, 2012, 2:30 AM
If the target TextBox is set as ReadOnly, the value would be empty when post back. you can use a HiddenField to save the selected date value and then assign it to TextBox in client page load event. Please refer this code: