Hi All,
I am generating a textbox and a button dynamically. I will enter some text in the textbox and click on the button. Now what I want is I need to use that textbox value in some function. Since its a dynamically generated value it will be lost for each server post back.
I tried by overriding SaveViewState and LoadViewState methods. But SaveViewState method is being called before I enter some text into textbox. So when I enter some text in the textbox and click on the button the LoadViewState method is picking the empty string "" instead of the text I entered in the textbox. Bcoz the SaveViewState method has saved the empty string.
How to overcome this ?
Thanks,Sachi