migrate to new git
This commit is contained in:
33
web/admin/Templates/TBS5ADM001/MasterPage.master.cs
Normal file
33
web/admin/Templates/TBS5ADM001/MasterPage.master.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
public partial class admin_Templates_TBS5ADM001_MasterPage : MyWeb.master
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
MasterLoad();
|
||||
}
|
||||
public void set_navs(bool visible=true, string body_class="")
|
||||
{
|
||||
this.nav.Visible = visible;
|
||||
this.layoutSidenav_nav.Visible = visible;
|
||||
this.PageBody.Attributes["class"] += " "+ body_class;
|
||||
}
|
||||
/* From MyWeb.config*/
|
||||
public static bool IsHttps()
|
||||
{
|
||||
return HttpContext.Current.Request.IsSecureConnection;
|
||||
}
|
||||
public static string UrlHost()
|
||||
{
|
||||
string url = (IsHttps() ? "https://" : "http://")
|
||||
//+ HttpContext.Current.Request.Url.Host
|
||||
+ HttpContext.Current.Request.ServerVariables["HTTP_HOST"]
|
||||
+ VirtualPathUtility.ToAbsolute("~/");
|
||||
return url;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user