hold data in forms with viewstate

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
 
K

Karl

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top