コード例 #1
0
ファイル: Profile.aspx.cs プロジェクト: ryyap/CSCClient
        protected void Button1_Click(object sender, EventArgs e)
        {
            string id = "";
            id = (string)(Session["ID"]);
            int userID = Int32.Parse(id);
            int count;

            string inUser;
            string inDOB;
            string inEmail;
            string inPass;

            inUser =  usernameText.Text;
            inDOB = dobText.Text;
            inEmail = emailText.Text;
            inPass = passwordText.Text;

            profileservice.UserProfileWebService svc = new profileservice.UserProfileWebService();
            count = svc.updateUserProfile(userID, inPass,inUser, inDOB, inEmail );
            if (count == 1)
            {
                Label1.Text = "Success";
            }
            else {
                Label1.Text = "Fail";
            }
            passwordText.Text="";

        }