Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET Viewstate problem

Reply
Thread Tools

ASP.NET Viewstate problem

 
 
KK
Guest
Posts: n/a
 
      01-23-2004
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


 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      01-23-2004
Check out these support articles:

http://support.microsoft.com/search/...mDays=&InCC=on

(watch for wrapping)

The URL goes to Microsoft Support and lists all the articles related to
ASP.NET and Server.Transfer.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist


"KK" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with ViewState: "function 'ViewState.get_Item' evaluated and returned null" Steph ASP .Net 2 05-11-2011 02:35 PM
Errors: Failed to load viewstate. & Validation of viewstate MAC failed. sck10 ASP .Net 6 09-01-2006 05:59 PM
Loading usercontrols, viewstate problem, slighly different from all others "viewstate uc problems" please help... ujjc001 ASP .Net 0 07-27-2005 01:52 PM
Viewstate errors... how do I get viewstate working? mark ASP .Net Building Controls 0 02-20-2004 02:17 PM
Corrupted ViewState (Yes, another issue concerning viewstate) Ben Rush ASP .Net 2 12-05-2003 04:17 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57