Where to use ViewState

E

Eric

Hi,

I'm currently writing a ASP.NET page in VS2008 with VisualBasic.

I have a page with three textboxes the user can fill and a button.

When the user clicks the button the information from the textboxes should go
to the code behind for some stuff to do.

All controls are dynamicly build in de Page_INIT event of the page.
I have added a handler to the button to catch it's click event.

While running the page, the handle for the clickevent is called, but the
controls voor the textboxes are empty.

I guess I will have to use ViewState to keep the text property of the
textboxes, but where in my code do I put it?

So basicly what I need it that when the button is clicked, the information
text in the textproperties is stored in the viewstate before actually running
the click-event code.

Or am I doing it wrong and is there another method?

rg,
Eric
 
E

Eric

Please ignore the 2nd post, since apparently it was a one time deal.

Still need some help.
 

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

Top