473,406 Members | 2,356 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,406 software developers and data experts.

Problem with Server.Transfer

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 Server.Transfer, the user gets a page has expired error.

Is there a way to keep using Server.Transfer, but also have the back button work normally?
Nov 18 '05 #1
4 1743
Although I have not used Transfer very much, I would imagine not. The
reason being that the back button is controlled by the browser and when you
call Transfer, the browser does not know that you are changing pages, all
the work is done on the server. So, as far as the browser is concerned, you
are still on page1, regardless of how many calls to Transfer you make.

Someone can correct me if I am wrong. Would not be the first time. :p

"john" <an*******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
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 Server.Transfer, the user gets
a page has expired error.
Is there a way to keep using Server.Transfer, but also have the back

button work normally?
Nov 18 '05 #2
Selecting history buttons just pull dead pages from cache, they do not
request new page from server so no code runs.

Charlie
"john" <an*******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
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 Server.Transfer, the user gets
a page has expired error.
Is there a way to keep using Server.Transfer, but also have the back

button work normally?
Nov 18 '05 #3
I use Server.Transfer extensively in the app I am working on now and I don't
have any problems with the back button. It's hard to say what I'm doing
differently from what you're doing, or vice versa, but that at least shows
that you can use the back button without having to refresh the page.

Peter, you're right about one thing. When the second page is loaded from
Server.Transfer, the browser address bar still shows the first page address
but after posting back via any control or submitting the form, then the
address bar shows the address for the second page.

Hope that helps some, John. At least you know it's possible.

Dale

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Although I have not used Transfer very much, I would imagine not. The
reason being that the back button is controlled by the browser and when you call Transfer, the browser does not know that you are changing pages, all
the work is done on the server. So, as far as the browser is concerned, you are still on page1, regardless of how many calls to Transfer you make.

Someone can correct me if I am wrong. Would not be the first time. :p

"john" <an*******@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
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 Server.Transfer, the user gets a page has expired error.

Is there a way to keep using Server.Transfer, but also have the back

button work normally?

Nov 18 '05 #4
Charlie@CBFC wrote:
Selecting history buttons just pull dead pages from cache, they do not
request new page from server so no code runs.


Careful... that depends
a) on the browser,
b) on the page's cache settings.

Cheers,

--
Joerg Jooss
jo*********@gmx.net
Nov 18 '05 #5

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

Similar topics

0
by: Srini | last post by:
I am implementing Front Controller in ASP.net as outlined in Microsoft documentation titled "Implementing Front Controller in ASP.NET Using HTTPHandler"...
11
by: Abhishek | last post by:
I have a problem transfering files using sockets from pocket pc(.net compact c#) to desktop(not using .net just mfc and sockets 2 API). The socket communication is not a issue and I am able to...
6
by: Scott Zabolotzky | last post by:
I'm trying to pass a custom object back and forth between forms. This custom object is pulled into the app using an external reference to an assembly DLL that was given to me by a co-worker. A...
8
by: Bob Skutnick | last post by:
Greetings, I'm hoping someone has experienced a problem I'm having: I have an existing ASP application (working fine) that uses an SSL server certificate. My user community is made up of both...
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...
1
by: KK | last post by:
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....
2
by: Tony Cheng | last post by:
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...
12
by: Britney | last post by:
Hi guys, in my default.aspx file, I have following code. when I go to browser, I enter values in both textboxs, then I hit submit Button, however, it didn't go to page2.aspx. instead, it was...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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...

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.