Hi guys,
Im stroring the user details in a session variable(session["userid"]) while login. protected void btnlogin_Click(object sender, EventArgs e)
{
try
{
int status = 0;
int cou = 0;
dt = new DataTable();
dt = checkObj.checkAdminEmployeeLogin(txtUsername.Text.Replace("'", "").Trim(), txtPassword.Text.Replace("'", "").Trim());
cou = dt.Rows.Count;
if (dt.Rows.Count > 0)
{
status = Convert.ToInt32(dt.Rows[0]["bitactive"].ToString());
if (status == 0)
{
Session["userId"] = dt.Rows[0]["employeeid"].ToString();
string strUserid = Session["userId"].ToString();
dt = new DataTable();
ur ...
Go to the complete details ...