c# get full URL of page

C#
string absoluteurl = System.Web.HttpContext.Current.Request.Url.AbsoluteUri;
Source

Also in C#: