Get webpage url from Codebehind

Posted: March 28, 2012 in ASP.net 4.0
Tags: ,

Another small tip for you 🙂 Sometimes when you have your web page hosted on multiple servers,you may want to get the complete url of the loaded page from the code behind.Below code can help you get the complete path.

Request.Url.AbsoluteUri

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s