Redirecting from .html page to .asp page

Reply

Join Date: Jun 2007
Posts: 68
Reputation: RahulV is an unknown quantity at this point 
Solved Threads: 0
RahulV's Avatar
RahulV RahulV is offline Offline
Junior Poster in Training

Redirecting from .html page to .asp page

 
0
  #1
Oct 17th, 2008
Ive created a .html page, but now i want that when a user tries to open that .html page he must be automatically directed to .asp page without showing the contents of the .html page.

How can i do that ???

Please help !!!

Thank you !!!
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 89
Reputation: msaqib is an unknown quantity at this point 
Solved Threads: 1
msaqib msaqib is offline Offline
Junior Poster in Training

Re: Redirecting from .html page to .asp page

 
0
  #2
Oct 18th, 2008
Here is the code you need to redirect a user from one page to another using html.

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>HTML Page Title</title>
  5. <meta http-equiv="REFRESH" content="0;url=http://www.domain.com/page.asp"></head>
  6. <body>
  7. HTML Text
  8. </body>
  9. </html>

Here content="0; is the time in seconds the browser will wait and then redirects the user to the next page.
Last edited by msaqib; Oct 18th, 2008 at 12:19 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1204 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ASP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC