protected void Button1_Click(object sender, EventArgs e)
{
int id = 123;
Session["PersonnelID"] = id;
Response.Redirect("Otherpage.aspx");
}
in otherpage.aspx
protected void Page_Load(object sender, EventArgs e)
{
int id = 0;
if (Session["PersonnelID"] != null)
{
id = (int)Session["PersonnelID"];
}
}