I have a text box with an ajaxToolkit:calendarextender attached to it.
I also have an
OnTextChanged="do something" with an
I only want my user to be able to enter data into a textbox by using the calendar extender.
I've tried setting the
readonly property on the textbox to true. This works only if there is existing text in the textbox (if I
textbox.text = "such and such" then entry via the calendar extender works).
If I try selecting a date by clicking the textbox and selecting a date in the calendar extender, anything that is entered is immediately cleared because of the
autopostback and the
OnTextChanged event. I get this exception:
How can I disable entry into the textbox via keyboard and only allow entry by the
User contributions licensed under CC BY-SA 3.0