示例#1
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            string uID    = Request.QueryString["id"];
            string typeID = Request.QueryString["type"];

            // Put user code to initialize the page here
            if (typeID.Equals("new"))
            {
                //new user handling here
                //need to move the new user info to the users table
                user = PMT.User.approveNewUser(uID);
            }
            if (typeID.Equals("current"))
            {
                //current user handling here
                user = new User(uID);
            }
            if (!Page.IsPostBack)
            {
                //what to do when the page is loaded fresh
                //set the control to show admin field set
                //then fill it with the appropriate user information
                ProfileControl1.AdminView = true;
                ProfileControl1.fillForm(new User(uID));
            }
        }
        private void Page_Load(object sender, System.EventArgs e)
        {
            // Put user code to initialize the page here

            string devID = Request["devID"];

            ProfileControl1.Editable = false;
            PMT.User dev = new User(devID);
            ProfileControl1.fillForm(dev);
        }
示例#3
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            // Put user code to initialize the page here
            if (!Page.IsPostBack)
            {
                ProfileControl1.AllowChangeUsername = false;
                ProfileControl1.AllowChangePassword = true;
                ProfileControl1.AllowChangeSecurity = false;

                // fill the form with the user's information
                ProfileControl1.fillForm(new User(Request.Cookies["user"]["id"]));
            }
            StatusLabel.Visible = false;
        }