Users Pricing

forum

home / developersection / forums / how to get domain name

How to get Domain name

Anonymous User 2539 04 Oct 2014
i want to get domain name in asp.net
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



I am a content writter !


1 Answers