protected void Button1_Click(object sender, EventArgs e) { string id = ""; id = (string)(Session["ID"]); int userID = Int32.Parse(id); string inNewPass; string inOldPass; int count; inNewPass = newPasswordText.Text; inOldPass = oldPasswordText.Text; profileservice.UserProfileWebService svc = new profileservice.UserProfileWebService(); count = svc.changePassword(userID,inOldPass,inNewPass); if (count == 1) { Label1.Text = "Your password has been successfully changed!"; } else { Label1.Text = "Fail"; } newPasswordText.Text=""; oldPasswordText.Text=""; TextBox2.Text = ""; }