get current url c# code example
Example 1: c# get url html
using System.Net;
using (WebClient web1 = new WebClient())
string data = web1.DownloadString("URL");
Console.WriteLine(data);
}
Example 2: c# get full URL of page
string absoluteurl = System.Web.HttpContext.Current.Request.Url.AbsoluteUri;