0

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.

Zerotoinfinity
  • 6,290
  • 32
  • 130
  • 206

1 Answers1

1

The trick is to not set the ReadOnly property 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!

Community
  • 1
  • 1
Vaibhav
  • 1,156
  • 2
  • 12
  • 27