예제 #1
0
        protected void Modifier_OnClick(object sender, EventArgs e)
        {
            String[] list  = { "", "", "", "", "" };
            USERS    users = new USERS((string)Application["DB"], this);

            list = users.SelectByUsername(Session["LogedUser"].ToString());

            Session["Username"] = list[0];
            Session["Password"] = list[1];
            Session["Fullname"] = list[2];
            Session["Email"]    = list[3];

            Response.Redirect("Modifier.aspx");
        }
예제 #2
0
        protected void BTN_Submit_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                USERS users = new USERS((string)Application["DB"], this);
                users.ID       = users.SelectBiggestInt();
                users.UserName = TB_Username.Text;
                users.Password = TB_Password.Text;
                users.FullName = TB_Name.Text;
                users.Email    = TB_Email.Text;
                users.Insert();

                Session["message"] = "(Inscription réussie - complétez maintenant votre profil...)";
                Response.Redirect("Login.aspx");
            }
        }
예제 #3
0
        protected void BTN_Submit_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                USERS users = new USERS((string)Application["DB"], this);
                users.ID       = Convert.ToInt32(Session["ID"]);
                users.UserName = TB_Username.Text;
                users.Password = TB_Password.Text;
                users.FullName = TB_Name.Text;
                users.Email    = TB_Email.Text;
                users.Update();

                Session["Modify"] = "true";

                Session["message"] = "(Inscription réussie - complétez maintenant votre profil...)";
                Response.Redirect("Index.aspx");
            }
        }
예제 #4
0
        protected void CV_TB_UserName_ServerValidate(object source, ServerValidateEventArgs args)
        {
            USERS users = new USERS((string)Application["DB"], this);

            args.IsValid = users.Username_Exist(TB_Username.Text);
        }