473,413 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

grab ID# from address bar

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 ***
May 25 '07 #1
2 1791


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 ***
May 25 '07 #2
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

%><html>

<head>
<title>404 - </title>
</head>

<body>
<h1>this is the 404 page</h1>
..............

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 25 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Brad Tilley | last post by:
Instead of me arbitrarily assigning a high port number to a variable, is it possible to check for ports that are unused and then randomly assign one of them to a variable? Something like this is...
12
by: Larry R. Baker | last post by:
Is it possible to grab a client side IP Address using JavaScript in an htm page? I have a web page hosted on a non-ASP server and I want a piece of code in JavaScript to grab the IP address of the...
3
by: Roger | last post by:
Hi: Is it possible to grab recordset even after SQL throws error, but also returns data?
2
by: K.H. | last post by:
Hi Does anyone know how I can grab a video stream from an IP-address? There's a video web server for live image transmission in the Internet. Data transfer is accomplished via TCP/IP. The web cam...
3
by: dragonfly8563 | last post by:
Hi all, I created a listbox with employees' names and email addresses in it, and a button which grabs email address once it's clicked. Currently I can only pick up one address at a time, but I...
7
by: JoeP | last post by:
Hi All, What codes grab the IP address? Thanks, Joe
4
by: Prodian | last post by:
Im trying to parse a recv from a telnet session then only grab certain data. Heres an example of the recv that Im storing into a string: Internet 204.189.124.205 0 001a.a01f.4e5a ...
0
by: eddiefisher41 | last post by:
Hi guys. Im having a little trouble with one of my phyon cgi scripts. Basically i need to a function that runs on the server size as a python cgi script but returns the IP address of the web...
19
by: JRough | last post by:
I have used this function to create a string called $headers: function GetHeaders($file_name){ return "<th><a href='".$file_name."&order_by=l_e'>L_E</a></th> <th><a href='"....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.