public void UpdateUser() { //void UpdateUser(int userId, string email, string password) AccountFacade facade = new AccountFacade(); PortalUser user= new PortalUser(); user.UserID=0; user.Email = "e"; user.Password = "******"; facade.UpdateUser(user); }
//******************************************************* // // The UpdateUser_Click server event handler is used to add // the update the user settings // //******************************************************* protected void UpdateUser_Click(Object sender, EventArgs e) { // update the user record in the database IAccountFacade facade = new AccountFacade(); PortalUser user = new PortalUser(); user.UserID = userId; user.Email = Email.Text; user.Password = PortalSecurity.Encrypt(Password.Text); facade.UpdateUser(user); // redirect to this page with the corrected querystring args Response.Redirect("~/Admin/ManageUsers.aspx?userId=" + userId + "&username="******"&tabindex=" + tabIndex + "&tabid=" + tabId); }