Hi aneri,
Refer the below code.
string url = Request.Url.AbsoluteUri;
// http://localhost:28815/Test/Default.aspx (FullUrl)
string path = Request.Url.AbsolutePath;
// /Test/Default2.aspx (AbsolutePath)
string host = Request.Url.Host;
// localhost (host)