I have a gridview on which Item template has few textbox, due to business requirement I have to disable those textbox.
Now, I have to read the textbox value from code behind. Could you tel me if that is possible to get read only textbox value from gridview.
I have a gridview on which Item template has few textbox, due to business
Share
The trick is to not set the
ReadOnlyproperty on the control in design mode.A similar question exists:
Workarounds to access the Readonly Textbox value on server side when changed through client side script
Also, additionally you may want to check out the following:
How to get readonly textbox value in codebehind or CS file
How to get the readonly textbox value on the server
Hope it helps!