i'm using this code
string DomainName = HttpContext.Current.Request.Url.Host;
my url is http://localhost:55589/ but it is return only localhost
now i'm want to get http://localhost:55589/ how to possible
string DomainName = HttpContext.Current.Request.Url.Host;
my url is http://localhost:55589/ but it is return only localhost
now i'm want to get http://localhost:55589/ how to possible
string DomainName = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority);
this will return you http://localhost:55589