Translate

Saturday, 4 September 2021

C# get url host name, domain name dns name 

Out put 

i.e. for 

// out put will like : AS2

 1. DNS Name: System.Net.Dns.GetHostName()   

// out put will like : https://pabitrams.in/landingPage.aspx2. AbsoluteUri  : System.Web.HttpContext.Current.Request.Url.AbsoluteUri 

//out put will like :pabitrams.in 

3.Host  System.Web.HttpContext.Current.Request.Url.Host   


No comments:

Post a Comment