Current location: Hot Scripts Forums » Programming Languages » ASP » please help me with redirect page


please help me with redirect page

Reply
  #1 (permalink)  
Old 12-07-06, 05:50 PM
Hoangsts Hoangsts is offline
Newbie Coder
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
please help me with redirect page

Hi,

if i have this link: http://www.myweb.com/redirect.asp?ur...ww.yourweb.com

i would like to ask you guys to help me with a source code in asp or javascript for redirect.asp to redirect users when they click on the link above to http://www.yourweb.com.

I like the option with pop up and telling users " you are being redirect to: http://yourweb.com.." and after a few secs it will auto redirect them to http://www.yourweb.com


thnk you very much!!!!
__________________
Iam very stupid at ASP but want to learn ASP....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 12-07-06, 10:59 PM
koncept
Guest
 
Posts: n/a
my sugestion would be to use a compbination of javascript and asp. use the java script to display countdown and perform the actual redirect and have asp help write the javascript by filling in the to url from the url's querystring. i'll see if i can dig up the javascript i liked for this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 12-08-06, 09:57 AM
Hoangsts Hoangsts is offline
Newbie Coder
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
If Request.QueryString("url") <> "" Then
	Response.AddHeader "Refresh","5;URL=" & Request.QueryString("url")
	msg = "Please wait while you are redirected to " & Request.QueryString("url")
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>

<body>
<%
If msg <> "" Then
	Response.Write msg
Else
%>
<a href="<%=Request.ServerVariables("SCRIPT_NAME")%>?url=<%=Server.URLEncode("http://www.google.com")%>">http://www.google.com</a>
<br>
<a href="<%=Request.ServerVariables("SCRIPT_NAME")%>?url=<%=Server.URLEncode("http://www.yahoo.com")%>">http://www.yahoo.com</a>
<%
End If
%>
</body>
</html>
__________________
Iam very stupid at ASP but want to learn ASP....

Last edited by koncept; 12-08-06 at 10:11 AM. Reason: added code tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 12-08-06, 09:58 AM
Hoangsts Hoangsts is offline
Newbie Coder
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
yepppppppppy...............


i got it to work
__________________
Iam very stupid at ASP but want to learn ASP....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
redirect to another page and pass values with a button crmpicco Perl 1 11-03-06 01:06 PM
[turnkey] Lyrics site - $149 (LEGAL) rightinpoint General Advertisements 0 10-22-06 05:33 AM
redirect page corina JavaScript 1 03-02-06 08:17 PM
Classified Ads skipper23 Perl 3 11-22-05 03:22 AM
Classified Ads skipper23 Perl 2 12-30-03 04:43 AM


All times are GMT -5. The time now is 06:50 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.