Look at the Request.Url class, it has a number of useful properties.
Karl

Signature
http://www.openmymind.net/
Thank You Karl, actually, I am interested in getting the last portion of the
domain only, so if my site is www.xyz.co.uk then I need to get xyz.co.uk and
if my site is abc.xyz.com then I am only interested in the xyz.com part.
I still need to go through the logic of the method I provided below!
Ideas?
Regards,
Adam Tibi
> Look at the Request.Url class, it has a number of useful properties.
>
[quoted text clipped - 37 lines]
>>
>> Adam Tibi
Karl Seguin [MVP] - 17 Feb 2006 15:13 GMT
if (address.StartsWith("www."))
{
address = address.SubString(4);
}
Karl

Signature
http://www.openmymind.net/
http://www.fuelindustries.com/
> Thank You Karl, actually, I am interested in getting the last portion of
> the domain only, so if my site is www.xyz.co.uk then I need to get
[quoted text clipped - 49 lines]
>>>
>>> Adam Tibi