get absolute url c#

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

Also in C#: