vinod koti

vinod koti

  • NA
  • 2
  • 1.4k

Retain dynamic controls data after postback

May 25 2017 1:21 PM
Creating dynamic controls (Button, TextBox and RadioButtonList) in the GridView.

Adding values in TextBox and select appropriate radio button from the list.

When i click on Button (Click Event), postBack happens and first Page_Load () is called before hitting the Btn_Click() event, hence the values entered int he text box is getting cleared.

Since Dynamic controls are adding, for each and every post post, they have to be recreated with default values.

My Question : - On Button Click, before hitting the Page_Load, is there any other event where i can save the current textbox values and then restore after page load?