Advertisement
Guest User

Untitled

a guest
May 31st, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Label lblwelcome = this.Master.FindControl("lblwelcome") as Label;
  2. Label lbluser = this.Master.FindControl("lbluser") as Label;
  3. LinkButton lnklogin = this.Master.FindControl("lnklogin") as LinkButton;
  4. Session["Username"] = txtUserName.Text;
  5. Session["Department"] = dt.Rows[0]["DEPERTMENT"].ToString();
  6. Session["loginStatus"] = "LogOut";
  7. Response.Redirect("~/Default.aspx");
  8.  
  9. }
  10. else
  11. {
  12. FailureText.Text = "Invalid Username and Password";
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement