Redirecting on the server

Discussion in 'ASP.NET / ASP.NET Core' started by GraemeF, Aug 3, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,

    It's a bit embarrassing asking such a simple question, but is it possible to take a request on one page and silently redirect the client to another?
    I currently ask the client to redirect, but it looks rather... unprofessional [:I]

    Cheers,
    G.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Yes.

    Try this asp code snippet

    <%

    respond.rediret("http://www.domain.com/test.aspx")

    %>


    quote:Originally posted by GraemeF

    Hi,

    It's a bit embarrassing asking such a simple question, but is it possible to take a request on one page and silently redirect the client to another?
    I currently ask the client to redirect, but it looks rather... unprofessional [:I]

    Cheers,
    G.
    </blockquote id="quote"></font id="quote">
     
  3. Whoops, bruce looses one point for spelling, but it hardly counts against his total... It should actually read

    <%
    Response.Redirect("http://www.domain.com/test.aspx")
    %>

    Where the part in quotation marks is the URL to which you want the user redirected.

    Cheers,

    pj
     
  4. Great! Thanks.

    G.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page