ASP.NET Viewstate problem

K

KK

Hi

I am trying to implement a couple of webforms which will
work as a normal installation program. That is from each
form you can go to the NEXT or PREVIOUS form. I want
to have about 4 forms. So if I start from form 1 and press
Next, 4 times it will come to form 4. Now when when I go
back to form 1(If needed) all those forms should save its
previous state. I have tried this using VIEWSTATE. But
it acts werid.(That is cause am doing something wrong which
I can't figure out) can anybody help me out?

I made sure all my 4 forms have something like

<form id="Form1" method="post" runat="server">
</form>

But what I did was when I click NEXT or PREVIOUS
buttons, say from WebForm2.aspx, I have

Server.Transfer("Webform3.aspx",true) in NEXT click
Server.Transfer("Webform1.aspx",true) in PREVIOUS click

Server.Transfer stops execution of current page.
Does that have an impact on saving viewstate?

Any help is appreciated
KK
 

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