473,388 Members | 1,408 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,388 software developers and data experts.

Server.Transfer Problem

When I use Server.Transfer from aspx A to aspx B, it's ok
but when I click a button in aspx B, the expected behaviour is that
Server.Transfer would be called again and the page would go from aspx B to
aspx C.
But I face a problem that when I click the button in aspx B, exception
appear which said the view state is invalid.

But if I have not used Server.Transfer from aspx A to aspx B , the
Server.Transfer from aspx B to aspx C works properly.

Is that any limition on Server.Transfer such that I cannot perform
Server.Transfer again ? Thanks.
Nov 18 '05 #1
2 1823
I guess so..
Server.Transfer starts a new process everytime u use it..
Won't response.redirect suit you..
try using that!

"Tony Cheng" wrote:
When I use Server.Transfer from aspx A to aspx B, it's ok
but when I click a button in aspx B, the expected behaviour is that
Server.Transfer would be called again and the page would go from aspx B to
aspx C.
But I face a problem that when I click the button in aspx B, exception
appear which said the view state is invalid.

But if I have not used Server.Transfer from aspx A to aspx B , the
Server.Transfer from aspx B to aspx C works properly.

Is that any limition on Server.Transfer such that I cannot perform
Server.Transfer again ? Thanks.

Nov 18 '05 #2
Because these pages share the same VO object for information
I need to pass the VO object from one page to another page.
Redirect could not archieve this I think

"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message
news:63**********************************@microsof t.com...
I guess so..
Server.Transfer starts a new process everytime u use it..
Won't response.redirect suit you..
try using that!

"Tony Cheng" wrote:
When I use Server.Transfer from aspx A to aspx B, it's ok
but when I click a button in aspx B, the expected behaviour is that
Server.Transfer would be called again and the page would go from aspx B
to
aspx C.
But I face a problem that when I click the button in aspx B, exception
appear which said the view state is invalid.

But if I have not used Server.Transfer from aspx A to aspx B , the
Server.Transfer from aspx B to aspx C works properly.

Is that any limition on Server.Transfer such that I cannot perform
Server.Transfer again ? Thanks.

Nov 18 '05 #3

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

Similar topics

5
by: Nedu N | last post by:
Hi All, I am facing a typical problem in my .NET application with the pop-up script messages. The thing is that its working fine when i run on my development machine but not running in expected...
8
by: Cathie | last post by:
Hi guys, I want to do a Server.Transfer to get to a second page, so that I may retrieve variables I have set in the first page. I'm doing that with the usual Server.Transfer("pagename", true). ...
9
by: Mark | last post by:
Hello I'm trying to use a Server.Transfer in a try-catch (I cannot put it outside the Try-Catch as it is nested deep within a component that is called in a try-catch loop) The problem is that the...
4
by: john | last post by:
I have an app that uses Server.Transfer from page1 to page2. page2 needs to be able to read all the values from page1's form. The problem is, if the user clicks the back button on page2 after a...
5
by: Guadala Harry | last post by:
I've been reading up on Server.Transfer as well as doing some testing, and it appears to always raise the ThreadAbortException error. On one hand I've read a bunch of promotional-type material...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
18
by: UJ | last post by:
Folks, We provide custom content for our customers. Currently we put the files on our server and people have a program we provide that will download the files. These files are usually SWF, HTML or...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
5
by: Richard | last post by:
I've developed a small ASPX template framework (based on Chun Li's article on CodeProject: http://www.codeproject.com/aspnet/headerfooter.asp#xx849313xx) which uses a IHttpModule to apply...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.