How to check in ASP.NET MVC View if site is running on localhost or 127.0.0.1


How to check in ASP.NET MVC View if site is running on localhost or 127.0.0.1



How to check in ASP.NET MVC View if site is running on localhost or 127.0.0.1?

Best regards, Alexey Zakharov.


MVC2 Partial View throws/catches exceptions while resolving the path to the view

1:

Send fax from ASP.NET MVC applicationhow to get the string from dropdown list ASP.Net MVC Blog content storage

2:

Invalidate portions of the asp.net mvc output cache - with varying levels of granularity
@if (Request.IsLocal) { // did  any thing } 
or . asp.net mvc c# - how to use check box in view and get its value in model?
<% if (Request.IsLocal) { // did  any thing } %> 
Are there any open source ASP.Net plug-ins/modules for Vanity URLs for SEO?

3:

       <% if (Request.Url.DnsSafeHost.Contains("localhost") || Request.UserHostName.Contains("127.0.0.1"))        {         } %> 


83 out of 100 based on 68 user ratings 743 reviews

*