Friday, July 22, 2011

Textbox readonly property does not postback

When the user sets the textbox property as readonly. It does not have the viewstate. So Value wont display or comes to the server. In order to achieve the output make the textbox readonly after getting the value like this

string s=textbox1.text;
textbo1.readonly=true;

No comments:

Post a Comment