Re: Need to pass information into a web page.

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: clintonG (csgallagher_at_REMOVETHISTEXT@metromilwaukee.com)
Date: 07/16/04


Date: Thu, 15 Jul 2004 19:23:09 -0500

The Request object requires two trips to the server and can and will
affect performance.

Generally speaking, since ASP 3.0 and most especially with ASP.NET
the *only* reason to use the Request object to 'redirect' is when you
are redirecting to pages on another server or redirecting to pages that
are *not* .aspx files on the same server from which your code does the
redirection (or .asp files on the same server when using ASP 3.0).

You should be properly informed and as I am taking the responsibility
to do so I am telling you to learn to use the Transfer method when
your business process requires redirection. You also want to learn
the Execute method so you can learn how to return data to the calling
page when redirecting.

Start with MSDN documentation and refine your understanding with
Google searches such as those that follow. For the most part it can be
said that while it is still supported for reasons noted, the Request object
is obsolete.

Google: "transfer method"+"asp.net"
Google: 'execute method"+"asp.net"

-- 
<%= Clinton Gallagher
         A/E/C Consulting, Web Design, e-Commerce Software Development
         Wauwatosa, Milwaukee County, Wisconsin USA
         NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
         URL http://www.metromilwaukee.com/clintongallagher/
"Paul" <Paul@discussions.microsoft.com> wrote in message
news:BC01A421-D6FF-46A6-9BEA-0A4A838F4AA5@microsoft.com...
> Hi Kevin, got it working, can ignore the prev reply.  Thanks for the help.
> -- 
> Paul G
> Software engineer.
>
>
> "Kevin Spencer" wrote:
>
> > Response.Redirect(Request.QueryString("Redirect"))
> >
> > -- 
> > HTH,
> > Kevin Spencer
> > ..Net Developer
> > Microsoft MVP
> > Big things are made up
> > of lots of little things.
> >
> > "Paul" <Paul@discussions.microsoft.com> wrote in message
> > news:062ABE29-8A98-4755-9FF3-84E0723D524E@microsoft.com...
> > > Hi Kevin, thanks for the response.
> > > so in the login file what do I pass into the redirect statement as I
> > normally
> > > use it as shown below, with the redirect hardcoded in.
> > > Response.Redirect("denied.htm")
> > > -- 
> > > Paul G
> > > Software engineer.
> > >
> > >
> > > "Kevin Spencer" wrote:
> > >
> > > > <a
> > href="http://yourdomain.com/loginpage.aspx?Redirect=someotherpage.aspx">
> > > >
> > > > -- 
> > > > HTH,
> > > > Kevin Spencer
> > > > ..Net Developer
> > > > Microsoft MVP
> > > > Big things are made up
> > > > of lots of little things.
> > > >
> > > > "Paul" <Paul@discussions.microsoft.com> wrote in message
> > > > news:CF5A3BC4-650B-48EC-B64E-38B7DA34590B@microsoft.com...
> > > > > What I am trying to do is as follows.
> > > > > I have a page with 3 links,that direct the user to 3 different pages
> > when
> > > > selected after login.
> > > > > So all link selections will first direct the user to a login page.
> > Once
> > > > the user logs in then they are directed to the appropriate link.
> > > > > So for all 3 links they all go to a login page, but each link must
> > pass
> > > > information to the login in page, specifically the page to go to after
> > login
> > > > takes place.
> > > > > -- 
> > > > > Paul G
> > > > > Software engineer.
> > > >
> > > >
> > > >
> >
> >
> >


Relevant Pages

  • Re: http:// to https:// redirect
    ... >> Does anyone know how to redirect http:// requests that hit ... .ASP page in the appropriate place [e.g. at the root of the server, ... host more than one web site on that server... ...
    (microsoft.public.inetserver.iis.security)
  • Request object, ASP 0207 (0x80004005)
    ... Request object, ASP 0207 ... Cannot use Request.Form collection after calling BinaryRead ...
    (microsoft.public.inetserver.asp.components)
  • global filter to redirect asp (old asp!) pages on asp.net site
    ... my domain www.domain.com now is running asp.net but still gets requests to ... asp pages which were there on the old server. ... filter to redirect all .asp requests to the default.aspx page? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Newbie with a smallbiz2000 installation, check my config?
    ... > Windows creates a profile path under Documents & Settings. ... > a folder with that name already exists (maybe a local user with the ... > server, open the properties for this folder, and ensure that you have ... > you redirect key folders from a user's profile to a location on your ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: How to intercept error when httpRuntime maxRequestLength is ex
    ... "Hermit Dave" wrote in message ... > client side javascript and http module which could be helpful.. ... > To redirect the client your server has to send back a response. ...
    (microsoft.public.dotnet.framework.aspnet)