Re: Server.Transfer goes to wrong page
From: Keith Patrick (richard_keith_patrick_at_nospam.hotmail.com)
Date: 02/14/05
- Next message: jeff29_b_at_yahoo.com: "Re: Problem with firefox"
- Previous message: Ryan Smith: "Quick Question - Newby Question"
- In reply to: Keith Patrick: "Re: Server.Transfer goes to wrong page"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Feb 2005 14:20:29 -0600
Found the problem: We had our base page using an MSDN sample for showing
long-running pages as a countdown during load. The Server.Transfer call
moved Request.Params out of the read-only area of the query string and into
the Context.Items collection, which the client-side long-running-code stuff
could not detect, thus sending it back to the page that called it. Because
it was a client-side redirect, I never caught it in my debugger. I'm going
to change around my "redirect" code to ignore certain Request.Params, such
as that one and any session/cookie stuff so that only app-defined vars get
moved around like that.
"Keith Patrick" <richard_keith_patrick@nospam.hotmail.com> wrote in message
news:ufqQRmsDFHA.1296@TK2MSFTNGP10.phx.gbl...
> Well, I took all the shockwave stuff out altogether, and Server.Transfer
> *still* (even after verifying the URL as well) returns the user to the
> same page the first time the transfer happens. Subsequent attempts work,
> but I can't for the life of me figure out where ASP is getting the command
> to go to the wrong page.
> BTW: I cannot use Response.Redirect because I have to simulate a POST
> based on a querystring, and .Net has all of the Response collections that
> I can use set to read-only, leaving me to just use Server.Items.
>
> BTW2: I have tried this with SmartNav both on and off, and it does the
> same thing in each case, leading me to think that Server.Transfer has some
> issue with iframes. Gonna see if MS' knowledge base has improved its
> hit-to-noise ratio to maybe find a way out of this mess.
>
>
>
> "Keith Patrick" <richard_keith_patrick@nospam.hotmail.com> wrote in
> message news:%233eghefDFHA.3340@TK2MSFTNGP10.phx.gbl...
>>I have an app where a Shockwave splash animation starts off my app and
>>then sets its parent iframe's src to the value of a default page
>>"BasicReports". BasicReports has a link to another report page, but when I
>>click it and redirect via Server.Transfer (using both values for
>>preserveForm), the first time, it loads up BasicReports again. If I click
>>BasicReports *again*, then it transfers to the correct page. Is there a
>>known behavior/bug with Server.Transfer that would cause this? Only thing
>>I can remotely think of is that the server is not aware of the page change
>>due to it being set via iframe.attributes["src"] = "NewReport.aspx" and is
>>therefore going to the first place it knows, but if that is the case, am I
>>screwed?
>>
>
>
- Next message: jeff29_b_at_yahoo.com: "Re: Problem with firefox"
- Previous message: Ryan Smith: "Quick Question - Newby Question"
- In reply to: Keith Patrick: "Re: Server.Transfer goes to wrong page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|