Jump to content

redirecting a new visitor to another page


Guest celal

Recommended Posts

Guest celal

Hello,This is reference to the global.asa file section in asp tutorials. Regarding redirection in global.asa, it is said that:--quote--the example below shows how to redirect every new visitor to another page, in this case to a page called "newpage.asp":<script language="vbscript" runat="server">sub Session_OnStartResponse.Redirect("newpage.asp")end sub</script>--un quote--However, this will only redirect the files in the root with the global.asa. Gives error for files in other "child" folders and seems I cannot use mappath. Mappath does well in application (for db connection) but nt here. Any suggestions?? What am I doing wrong??Thanks in advance,Cello

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...