Beispiel #1
0
        private void LoadSettingsControl()
        {
            string controlName = Request["SettingsControl"];

            if (!String.IsNullOrEmpty(controlName))
            {
                string currPath = this.AppRelativeVirtualPath;
                currPath = currPath.Substring(0, currPath.LastIndexOf("/"));
                string ctrlPath = currPath + "/" + controlName + ".ascx";

                Control ctrl = Page.LoadControl(ctrlPath);
                ctlSettings = (IUserSettingsEditorControl)ctrl;
                settingsPlace.Controls.Add(ctrl);
            }
            else
            {
                RedirectBack();
            }
        }
        private void LoadSettingsControl()
        {
            string controlName = Request["SettingsControl"];
            if (!String.IsNullOrEmpty(controlName))
            {
                string currPath = this.AppRelativeVirtualPath;
                currPath = currPath.Substring(0, currPath.LastIndexOf("/"));
                string ctrlPath = currPath + "/" + controlName + ".ascx";

                Control ctrl = Page.LoadControl(ctrlPath);
                ctlSettings = (IUserSettingsEditorControl)ctrl;
                settingsPlace.Controls.Add(ctrl);
            }
            else
            {
                RedirectBack();
            }
        }