You can use
Session
object for that, see
here[
^]..
Now, at the log in time, store your user name/ user id in one Session object like
Session["Username"] = UserNameTxt.Text;
It makes
Session.Count > 0
, so you can use following scenario at Searching Chart:
if(Session.Count > 0)
{
Response.Redirect("home.aspx");
}
else
{
Response.Redirect("login.aspx");
}
Hope it will solve your issue.. :) If there is something that you don't get about this, let me know... :) :)