CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2001
    Location
    MD USA
    Posts
    12

    Response.Redirect Question

    I could use a simple example for this method. I can't seem to find one in the books I have.
    What I'd like to do is take some data from a user in a form and enter it in a database (this part works fine)
    then I'd like to redirect them to the next page automatically after a few seconds.
    I'm using Msoft PWS as the host
    RegistrationPage1.asp is the first form
    RegistrationPage2.asp is where I want them to go
    ETC.
    Do they need to go to an HTML page instead or first?
    TIA
    Timg


  2. #2
    Join Date
    Feb 2001
    Location
    MD USA
    Posts
    12

    Re: Response.Redirect Question

    <%Response.Buffer= TRUE%>
    If
    I put this code at the top of the document before any HTML stuff
    Then
    Response.Redirect "Pagename.asp" 'works just peachy
    End If


  3. #3
    Join Date
    Oct 2000
    Location
    Netherlands
    Posts
    71

    Re: Response.Redirect Question

    It's more a HTML question and I don't think this is the right place.

    Anyway, include this code in your HTML header:
    <meta http-equiv="REFRESH" content="5; URL=nextpage.asp">



    Where the 5 says the nextpage.asp file is opened after 5 seconds.

    Jeroen.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured