hold data in forms with viewstate

  • Thread starter Thread starter Tobias[br]
  • Start date Start date
T

Tobias[br]

hi there people...

in my application, i have 2 buttons(back and next) to navigate in the
asp:tables containing the input texts.
but when i click a button and back to other stage the data that i have
filled is gone.. how can i keep the data in input text after
postback????

Tobias Ramos
Belo Horizonte
Brasil
 
Are you repopulating those textboxes with default vaue?

Sub Page_Load
dim dt as datatable = getFormValues(formId)
txtUserName.text = dt.rows(0)("userName")
...
end sub

if so, you need to wrap that code in an if not page.ispostback then

Karl
 
Back
Top