473,320 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ASP.NET Viewstate problem

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
Nov 18 '05 #1
1 1164
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" <kk@kk.com> wrote in message
news:u2**************@TK2MSFTNGP10.phx.gbl...
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

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
3
by: Steve Drake | last post by:
All, I have a CONTROL that contains 1 control (Control ONE), the 1 control that it can contain 1 or 2 control (Control A and B). Control A, raises and event and Control ONE receives this event...
2
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
10
by: neo | last post by:
hi, I am studying ASP.NET and have few questions - 1) The session ID and values of controls is stored in VIEWSTATE variable. So now when we put EnableViewState="false" in Page directive and...
2
by: Janaka | last post by:
We have managed to lock down 99% of the application errors occurring in our asp.net sites. The only errors which occur on a regular basis now are viewstate errors. We have disabled viewstate on...
6
by: John | last post by:
Hi all, I am using dynamic user controls within my web app and these controls are loaded into placeholders via the LoadControl method. My problem is this: I have usercontrolA loaded into a...
2
by: epigram | last post by:
I'm responding to a button click event on an asp.net web form. I then need to retrieve the value from a TextBox control and I want to compare it against the control's previous value to see if it...
6
by: hlubocky | last post by:
I thought I had a good grasp of the problem related to dynamically creating controls, but it appears that as my application grew in complexity, the problem has resurfaced. As I understand it, in...
1
by: jelle.huygen | last post by:
Hello, I have a problem in ASP.NET 2.0 with the viewstate of my dynamically added user control. I have reproduced the problem with a very simple user control and a very simple page. On my...
0
by: Scott Roberts | last post by:
I always thought that the viewstate "keys" included the control ID. As long as the control IDs were unique, there shouldn't be any conflicts. Well, it appears that that may not be the case with...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.