protected void btnUpdate_Click(object sender, EventArgs e) { objLogin.LoginId = Convert.ToInt32(Request["LoginId"].ToString()); objLogin.LoginName = txtName.Text.Trim(); objLogin.Email = txtEmail.Text.Trim(); objLogin.Username = txtUsername.Text.Trim(); objLogin.Password = txtPassword.Text.Trim(); objLogin.Rights = Convert.ToInt32(ddlRights.SelectedValue.ToString()); objLogin.Update(); Response.Redirect("Manage-Login.aspx"); }