« Is directory access allowed | Main | Help file link in ASP.NET »

Comments

Chris M

Or Request.Url.GetLeftPart(UriPartial.Authority).

John

httpcontext.current

this is available everywhere since its static itself

Jordan

Ok, now how do you do that when you don't have a HttpRequest. Like say in the constructor or a static method. There has to be a way, this is silly.

Tim Wilson

Awesome! Thanks!

proka

useful, 10x

The comments to this entry are closed.