Hi, im thinking of storing a Hashtable and an ArrayList as Session Variables. When my page gets posted back these variables may be overwritten, i.e. they are populated again with different data, is there any need to delete the original variable or can use the same call and it will be overwritten....
E.g.
if (!Page.IsPostBack)
{
Session["myhash"] = hashtable;
}
else
{
Session["myhash"] = hashtable1;
}
Is this ok? or should i clear or do something with the existing Session Variable first?
Thanks,
Axum
E.g.
if (!Page.IsPostBack)
{
Session["myhash"] = hashtable;
}
else
{
Session["myhash"] = hashtable1;
}
Is this ok? or should i clear or do something with the existing Session Variable first?
Thanks,
Axum