protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4100;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "School and District Crosswalk");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SettingsRibbon());

                //LoadData();
            }

            _mStrSortExp = String.Empty;
            if (!IsPostBack)
            {
                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SettingsRibbon());
            }

            //MasterPage.RequiredPermission = PERMISSIONID;
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "Registration Settings");

            if (!IsPostBack)
            {
                lblPK.Text = "0"; //"Request["PK"];
                if (lblPK.Text.Length == 0)
                {
                    dv.ChangeMode(DetailsViewMode.Insert);
                }
                else
                {
                    dv.ChangeMode(DetailsViewMode.Edit);
                }
                Page.DataBind();
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         MasterPage.IsSecure  = true;
         MasterPage.PageTitle = "Global Settings";
         SetPageRibbon(StandardModuleRibbons.SettingsRibbon());
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "Program Close push -- BJ Hack");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SettingsRibbon());
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", "School and District Crosswalk");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SettingsRibbon());

                LoadData();
            }
        }
Exemple #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4100;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = "Library and District Crosswalk";

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SettingsRibbon());

                LoadData();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4100;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Custom Registration Fields");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SettingsRibbon());

                dv.ChangeMode(DetailsViewMode.Edit);
                Page.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SettingsRibbon());
            }

            MasterPage.RequiredPermission = 3000;
            if (!IsPostBack)
            {
                if (!string.IsNullOrEmpty(Request["MID"]))
                {
                    lblMID.Text = (string)Request["MID"];
                }
                else
                {
                    lblMID.Text = "-1";
                }
                if (!string.IsNullOrEmpty(Request["MName"]))
                {
                    lblModName.Text = (string)Request["MName"];
                }
                else
                {
                    lblModName.Text = "Summer Reading Program Settings";
                }
            }
            MasterPage.IsSecure  = true;
            MasterPage.PageTitle = string.Format("{0}", lblModName.Text);

            _mStrSortExp = String.Empty;
            if (!IsPostBack)
            {
                _mStrSortExp = String.Empty;
            }
            else
            {
                if (null != ViewState["_SortExp_"])
                {
                    _mStrSortExp = ViewState["_SortExp_"] as String;
                }

                if (null != ViewState["_Direction_"])
                {
                    _mSortDirection = (SortDirection)ViewState["_Direction_"];
                }
            }
        }
Exemple #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            AlertPanel.Visible = false;

            if (!IsPostBack)
            {
                MasterPage.IsSecure  = true;
                MasterPage.PageTitle = "Test Email";
                SetPageRibbon(StandardModuleRibbons.SettingsRibbon());

                this.EmailSubject.Text = string.Format("Test email from {0}",
                                                       GetSettingValue("SysName"));
                this.EmailTo.Text = GetSettingValue("FromEmailAddress");
                if (string.IsNullOrEmpty(this.EmailTo.Text))
                {
                    this.EmailTo.Text = ConfigurationManager.AppSettings[AppSettingKeys.DefaultEmailFrom.ToString()];
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MasterPage.RequiredPermission = 4100;
            MasterPage.IsSecure           = true;
            MasterPage.PageTitle          = string.Format("{0}", "Codes Management");

            if (!IsPostBack)
            {
                SetPageRibbon(StandardModuleRibbons.SettingsRibbon());

                if (Request["CTID"] != null && Request["CTID"] != "")
                {
                    LoadData();
                    btnEdit.Visible = true;
                    var i = ddlCodeTypes.Items.FindByValue(Request["CTID"].ToString());
                    if (i != null)
                    {
                        ddlCodeTypes.SelectedValue = Request["CTID"].ToString();
                        ShowDD();
                    }
                }
            }
        }