|
-
May 20th, 2004, 01:07 PM
#1
Response.Redirect cancels browser's frame
With server-side code, I need to redirect to some aspx page and display it to the current frame which is loaded in visitor's browser by some other provider.
Server.Transfer doesnt seem to work different than .Redirect, although the books saying that .Transfer needs-not a post back to the client and then a trip to the server again, meaning that with .Redirect the server orders the client to change its original location and .Transfer does the relocation by fooling arround the client which its still expects the first address.
- Better live in the digital world -
-
May 20th, 2004, 01:40 PM
#2
Hey dtv,
The only way I have ever solved this was to use an IFRAME. That doesn't mean another solution doesn't exist.
Good Luck,
Craig - CRG IT Solutions - Microsoft Gold Partner
-My posts after 08/2015 = .NET 4.x and Visual Studio 2015
-My posts after 11/2011 = .NET 4.x and Visual Studio 2012
-My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
-My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
-My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
-My posts before 04/2007 = .NET 1.1/2.0
*I do not follow all threads, so if you have a secondary question, message me.
-
May 20th, 2004, 01:54 PM
#3
Thanks for the reply Craig.
p/s - Sorry about my 2-month silence, I was out of business but now I have a brand new job.
- Better live in the digital world -
-
May 20th, 2004, 10:10 PM
#4
Response.Redirect does a round-trip to the client by sending client a REDIRECT header.
Server.Transfer does not do that. It basically, internally in IIS, load up the destination page and processes the output and then send it to client. As you can see the browser does not change the URL as it does not know that the server actually loaded a different page.
As for the FRAME, hmmm ... that is a little wierd. I should try it out and see the outcome.
-Cool Bizs
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|