protected void Page_Load(object sender, EventArgs e) { mPermission = new StyleGuide.Permission(this.Page); if (!mPermission.AccessStyleGuide()) { Server.Transfer(StyleGuideUI.App_Code.SgCommon.AccessDeniedPage()); } this.Page.MaintainScrollPositionOnPostBack = true; if (!IsPostBack) { if (this.Page.Request.QueryString.Count > 0) { if (this.Page.Request.QueryString[0].Split(',').Count() > 1) { ShowModule(this.Page.Request.QueryString[0].Split(',')[0], this.Page.Request.QueryString[0].Split(',')[1]); } else { ShowModule(this.Page.Request.QueryString[0].Split(',')[0], null); } } else { ShowModule("E", null); } } }
protected void Page_Load(object sender, EventArgs e) { mPermission = new StyleGuide.Permission(this.Page); if (!mPermission.AccessStyleGuide()) { Server.Transfer(StyleGuideUI.App_Code.SgCommon.AccessDeniedPage()); } this.Page.MaintainScrollPositionOnPostBack = true; if (!IsPostBack) { StyleGuide.API api = new StyleGuide.API(); try { UcSearch1.Refresh(api); } finally { api.Dispose(); } } }