protected void btnSave_Click(object sender, EventArgs e) { 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.Insert(); Response.Redirect("Manage-Login.aspx"); }