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

bizarre server.transfer behavior

Hi all, some help would be much appreciated on this issue:

We have a fairly large asp.net app which until now has been using
response.redirect without issue to move between pages. Unfortunately,
we need to expand the application to run on Mac Internet Explorer, and
Mac IE seems to have some unresolvable problems with response.redirect.
We've started using server.transfer instead, and it seems to be
working totally fine on the Mac we're testing it on. However, when I
try it locally on my PC it exhibits very strange behavior.

I click a button on Page A that activates a server.transfer to Page B
in the same folder. I can step through the code and see that Page B is
being instantiated, and it runs through Page B's Page_Load without
issue, but after that nothing happens. The browser is still pointing
to Page A. And that's it. Even though Page B is definitely getting
invoked the actual transfer never seems to happen.

We've futzed with browser settings to no avail. Does anyone have an
idea of what might be causing this?

Thanks,
Mo

Nov 19 '05 #1
5 1427
That is the way Transfer works. Transfer is entirely on the server and
therefore there is no way for the browser to update the URL because it does
not know that you changed context.

Redirect on the other hand sends a signal back to the browser and it is the
browsers job to move to the correct url, as if the user had typed the
address in themselves.

<Ch********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi all, some help would be much appreciated on this issue:

We have a fairly large asp.net app which until now has been using
response.redirect without issue to move between pages. Unfortunately,
we need to expand the application to run on Mac Internet Explorer, and
Mac IE seems to have some unresolvable problems with response.redirect.
We've started using server.transfer instead, and it seems to be
working totally fine on the Mac we're testing it on. However, when I
try it locally on my PC it exhibits very strange behavior.

I click a button on Page A that activates a server.transfer to Page B
in the same folder. I can step through the code and see that Page B is
being instantiated, and it runs through Page B's Page_Load without
issue, but after that nothing happens. The browser is still pointing
to Page A. And that's it. Even though Page B is definitely getting
invoked the actual transfer never seems to happen.

We've futzed with browser settings to no avail. Does anyone have an
idea of what might be causing this?

Thanks,
Mo

Nov 19 '05 #2
So does something explicit need to be added in the code for Page B (the
page being transferred to) to get it to display? The odd thing in all
of this is it is only not working as expected in windows IE. In
Macintosh IE it works perfectly!

Thanks,
Jon

Nov 19 '05 #3
Nevermind on this... it turns out there was a questionably necessary
"FormsAuthentication.RedirectFromLoginPage" being called just before
the server.transfer that was causing the issue. Mac seems to ignore
the call, so it actually functioned better through not working properly
:)

Nov 19 '05 #4
When you say that it is working on the Mac, are you saying that the URL
changes when you call Transfer, because that is physical not possible, on
any platform. Server.Transfer *never* informs the client of the change and
there is no setting anywhere that can change that.

There might be something else going on.

<Ch********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
So does something explicit need to be added in the code for Page B (the
page being transferred to) to get it to display? The odd thing in all
of this is it is only not working as expected in windows IE. In
Macintosh IE it works perfectly!

Thanks,
Jon

Nov 19 '05 #5
The url in the browser bar always stays static, but previous to
removing that FormsAuthentication call the content frame of the browser
wasn't changing on the PC but was changing on the Mac.

Nov 19 '05 #6

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

Similar topics

14
by: Michael Carr | last post by:
I have an intermittent problem that occurs on a very small number of browsers that access my website. The strange thing is this: my site works perfectly for 99.9% of browsers. The behavior...
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...
1
by: Alexander Bosch | last post by:
Hi, I'm sorry for the double posting, but I haven't got any solution for this and I'm still puzzled by this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 that's saying this...
4
by: Stan | last post by:
This code has been working for a long time: try { Server.Transfer ("Order.aspx"); } catch (Exception ex) { /// }
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
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
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...
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.