How to get base domain url in asp.net mvc

How to get base domain url in asp.net mvc



string webUrl = new Uri(Request.Url, Url.Content("~")).AbsoluteUri.TrimEnd('/');

Comments

Popular posts from this blog

How can we find .net version in server or computer

Develop recaptcha validation in c# backend and website

Download csv file in client side with mvc controller