Search this blog

Tuesday, September 29, 2009

How to Get Current Page URL thru ASP.NET?

The following Piece of code helps to get the current URL in Asp.Net.


using System;

Uri MyUrl = Request.Url;

Response.Write(
"URL: " + MyUrl.AbsoluteUri + "<br>");


Hope this code will be helpful to beginners

No comments:

Post a Comment