943,948 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 1472
  • ASP RSS
Oct 17th, 2008
0

Redirecting from .html page to .asp page

Expand Post »
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 !!!
Similar Threads
Reputation Points: 26
Solved Threads: 0
Junior Poster in Training
RahulV is offline Offline
92 posts
since Jun 2007
Oct 18th, 2008
0

Re: Redirecting from .html page to .asp page

Here is the code you need to redirect a user from one page to another using html.

html Syntax (Toggle Plain Text)
  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.
Reputation Points: 9
Solved Threads: 1
Junior Poster in Training
msaqib is offline Offline
91 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: <form action.....> trouble !!!!
Next Thread in ASP Forum Timeline: how to include a .inc file in asppages





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC