If you populate your controls in the Page_Load event, you can wrap the code that populates the controls in an
If Not Page.isPostBack
....
End If
block. This will only execute the code (within the block) once; when the page loads initially. You can ensure that the data remains in the controls by setting the controls viewstate property to true.
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.