Re: Searching URL String for Subdomain value
- From: "Ben Voigt [C++ MVP]" <rbv@xxxxxxxxxxxxx>
- Date: Mon, 12 Nov 2007 10:34:30 -0600
"CSINVA" <mcse_instructor@xxxxxxxxx> wrote in message
news:1193880562.557651.135010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have my DNS setup to answer for any subdomain. I need to be able to
look at the URL typed in like "joe.mysite.com" and put the subdomain
in a variable, so I can then look it up in a database. This would have
to work if they typed in http://joe.mysite.com or just joe.mysite.com.
Use System.Uri and the TryCreate method, then check the Host property.
.
- References:
- Searching URL String for Subdomain value
- From: CSINVA
- Searching URL String for Subdomain value
- Prev by Date: Re: Is there a way to execute code on Assembly loading?
- Next by Date: Re: I set my database to trustworthy and deployed this clr stored proc as unsafe ok but when i run this it returns 1 each time. as if ival keeps getting set back to 0 each time i call this clr stored proc. How to fix so that ival keeps its current value ea
- Previous by thread: Re: Searching URL String for Subdomain value
- Next by thread: Fastest way to move XML document into and back out of CLR function
- Index(es):
Relevant Pages
|
Loading