Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


help needed, redirection

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,331
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> help needed, redirection
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 help needed, redirection - 8/12/2001 2:44:51 AM   
  mihkelp

 

Posts: 3
Score: 0
Joined: 8/12/2001
From: Estonia
Status: offline
Hello,

I have a question or a problem I would like to make a redirection systme that would take the first part of the filename from string. Here is an example:

somepage.asp?page=blabla

it would redirect to blabla.asp



I don't wan't to write an if for each page because there are lot's of pages, please help.

BTW. I don't wan't to include the whole filename, beacause it would be lame.


--nuffin--
 
 
Post #: 1
 
 Re: help needed, redirection - 8/12/2001 8:54:14 AM   
  pagooda

 

Posts: 54
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
Mih,

Since you do not want to use server side include and write if for each of page, you might want to store your custom function in global.asa

(in reply to mihkelp)
 
 
Post #: 2
 
 Re: help needed, redirection - 8/13/2001 9:24:28 AM   
  mihkelp

 

Posts: 3
Score: 0
Joined: 8/12/2001
From: Estonia
Status: offline
and how would i do that, I don't know nothing about global.asa functions, besides I'm still a newbie on asp

--nuffin--

(in reply to mihkelp)
 
 
Post #: 3
 
 Re: help needed, redirection - 8/14/2001 2:34:48 AM   
  mihkelp

 

Posts: 3
Score: 0
Joined: 8/12/2001
From: Estonia
Status: offline
well, i figured it out myself here is the code:
the url looks like this - redirect.asp?www=lamer

here is the code
<%
www = Request.QueryString ("www")
Response.Redirect www + ".asp"
%>
and it will redirect to lamer.asp

--nuffin--

(in reply to mihkelp)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> help needed, redirection Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts