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

前端 未结 4 1974
离开以前
离开以前 2020-12-18 17:48

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

4条回答
  •  萌比男神i
    2020-12-18 18:28

    for global.asax

    if (System.Diagnostics.Debugger.IsAttached){themeName = ConfigurationManager.AppSettings["ThemeName"];}
    

提交回复
热议问题