Groups | Blog | Home
all groups > asp.net > march 2005 >

asp.net : Special Page Parameters



Noah Coad
3/21/2005 11:45:03 PM
I want to be able to use this notation on my site:
http://coad.net/link/[idnum] Where [idnum] is some identifier, such as
http://coad.net/link/31234, and have 31234 be a parameter fed into a
script/aspx page. How would you go about doing this? I've seen plenty of
sites use this notation and would like to use it myself.

Thanks!
-Noah Coad

Brock Allen
3/22/2005 6:47:31 AM
Ian discusses how to do this:

http://www.interact-sw.co.uk/iangblog/2004/01/12/shinyurl

Also there's an article on MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/urlrewriting.asp

-Brock
DevelopMentor
http://staff.develop.com/ballen



[quoted text, click to view]


Eliyahu Goldin
3/22/2005 10:25:39 AM
Noah,

Notation http://coad.net/link/31234 is a link to virtual directory
link/31234 on http server http://coad.net . The default page for the
directory will be called if you request this url. Notation for passing
parameters is
http://coad.net/link/myPage.aspx?myParam1=31234&myParam2=value2 . Or you can
use http://coad.net/link/myPage.aspx?31234. In the latter case page
myPage.aspx will get parameter named 31234 with no value.

Eliyahu

[quoted text, click to view]

AddThis Social Bookmark Button