473,405 Members | 2,261 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,405 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 1824
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.