Google+ Peter Bromberg's .NET Blog | How to get the Url to the current page in ASP.NET

Peter Bromberg's .NET Blog All Things Programming

How to get the Url to the current page in ASP.NET

24. August 2015 06:13 by admin in

There are lots of methods but I think this one is the easiest:

 

 string returnUrl = Request.Url.GetLeftPart(UriPartial.Authority);

Add comment

  Country flag


Loading