protected void getLoginDetails(int loginId) { objLogin.LoginId = loginId; objLogin.SelectById(); txtName.Text = objLogin.LoginName.ToString(); txtEmail.Text = objLogin.Email.ToString(); txtUsername.Text = objLogin.Username.ToString(); txtPassword.Text = objLogin.Password.ToString(); ddlRights.SelectedValue = objLogin.Rights.ToString(); }