grab ID# from address bar

grab ID# from address bar

am 25.05.2007 17:58:24 von DFS

I bet this is a simple one, but I just don't know.

www.mydomainname.com/12345

How do I grab the 12345 in my ASP page as the ID#?





*** Sent via Developersdex http://www.developersdex.com ***

Re: grab ID# from address bar

am 25.05.2007 18:08:24 von DFS

Ok, I pressed SUBMIT too quickly.

So, I need to know how to grab 12345 if someone goes to
www.mydomainname.com/12345. I also need to know what ASP page to create
since there is no .asp at the end of the address bar. Is this is custom
404 page?


*** Sent via Developersdex http://www.developersdex.com ***

Re: grab ID# from address bar

am 25.05.2007 18:23:08 von exjxw.hannivoort

Joey wrote on 25 mei 2007 in microsoft.public.inetserver.asp.general:

> Ok, I pressed SUBMIT too quickly.
>
> So, I need to know how to grab 12345 if someone goes to
> www.mydomainname.com/12345. I also need to know what ASP page to create
> since there is no .asp at the end of the address bar. Is this is custom
> 404 page?
>

Yes, you can use 404.asp if set in IIS,
and if /12345 does not exist as a directory:

<%

qstr = Request.ServerVariables("HTTP_REFERER")

if instr(qstr,":80/12345/")>0 then
server.transfer "/mySecretDirectory/12345page.asp"
end if

%>


404 -



this is the 404 page


..............

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)