this can be done by the session
if the user's authentication is right in login page then you can match session at home page.
i will give you example if right login at login page then pass session
Session["user"] = txtuser.Text;
Response.Redirect("adminhome.aspx");
and in home page check the user authentication
Labeluser.Text = Session["user"].ToString();
str = "select * from login where username='" + Labeluser.Text + "'";
cmd = new OleDbCommand(str, Classcon.con);
dtp = new OleDbDataAdapter(cmd);
ds = new DataSet();
dtp.Fill(ds);
if (ds.Tables[0].Rows.Count == 0)
{
Response.Redirect("loginpage.aspx");
}
else
{
}