Пример #1
0
 protected void Page_PreRender(object sender, EventArgs e)
 {
     try
     {
         RegisterAppPage(WebSiteCommon.CleanPageName(Request.Path));
     }
     catch (Exception exp)
     {
         SQMLogger.LogException(exp);
     }
 }
Пример #2
0
 protected void Page_PreRender(object sender, EventArgs e)
 {
     RegisterAppPage(WebSiteCommon.CleanPageName(Request.Path));
     // mt - testing the page access scheme ...
     lbCreateUser.Enabled = UserContext.CheckAccess("admin", "user", "add");
     lbUploadData.Enabled = UserContext.CheckAccess("admin", "user", "upload");
     lbSearchUser.Enabled = UserContext.CheckAccess("admin", "user", "search");
     if (!UserContext.CheckAccess("admin", "user", "search") && !lbUploadData.Enabled)
     {
         lbMyUser_Click(sender, null);
     }
 }
Пример #3
0
 protected void Page_PreRender(object sender, EventArgs e)
 {
     RegisterAppPage(WebSiteCommon.CleanPageName(Request.Path));
     if ((bool)SessionManager.ReturnStatus)
     {
         vw_CustPlantPart plantPart = (vw_CustPlantPart)SessionManager.ReturnObject;
         SessionManager.Part = SQMModelMgr.LookupPart(entities, plantPart.PART_ID, "", plantPart.CUST_COMPANY_ID, false);
         SessionManager.PartSearchCriteria = (SessionManager.Part.PART_NUM + "~" + rblSearchPart.SelectedValue);
         SessionManager.ReturnObject       = null;
         SessionManager.ReturnStatus       = false;
         Response.Redirect("/Admin/Administrate_ViewPart.aspx");
     }
 }
Пример #4
0
        protected void Page_PreRender(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                LoadSelects();

                if (SessionManager.BusinessOrg == null)
                {
                    pnlBusOrgDetail.Visible = false;
                }
                else
                {
                    SetupPage();
                }
            }
            RegisterAppPage(WebSiteCommon.CleanPageName(Request.Path));
        }
Пример #5
0
 protected void Page_PreRender(object sender, EventArgs e)
 {
     RegisterAppPage(WebSiteCommon.CleanPageName(Request.Path));
     tbSearchString.Text = args[0];
 }
 protected void Page_PreRender(object sender, EventArgs e)
 {
     RegisterAppPage(WebSiteCommon.CleanPageName(Request.Path));
 }