Re: Server.Transfer goes to wrong page

From: Keith Patrick (richard_keith_patrick_at_nospam.hotmail.com)
Date: 02/14/05


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?
>>
>
>



Relevant Pages

  • Re: How to clear form after postback
    ... I put redirect after the email send line. ... The first time I submitted the page it didn't load the page though. ... BTW, this is off topic, but how can I submit a page using an image and not a ...
    (microsoft.public.dotnet.framework.aspnet)
  • (no subject)
    ... Steve wrote: ... > (If you wondering why would i need to redirect to a local file.... ... Now you can load the signed java applet online ... > better to download to the system so you dont have to wait for the big ...
    (comp.security.misc)
  • (no subject)
    ... (If you wondering why would i need to redirect to a local file.... ... Now you can load the signed java applet online ... So what I did is create an installer, ...
    (comp.security.misc)
  • How to build a shared object to be loaded at run time?
    ... This is my first time trying to load a dynamic library ... fprintf (stderr, "%s\n", dlerror()); ...
    (comp.unix.programmer)
  • Re: Loading of a Live CD stops?
    ... This is a further complicated situation because I know that the CD worked in the drive the first time I used it to boot from, then after that, it has always given me the error I reported. ... Kailesh MUSSAI wrote: The error seems to be that modprobe is not able to load the module ... I get it when I try to load an Ubuntu v7.10 Live CD. ...
    (Ubuntu)

Loading