A
Andy B
I find it a little hard sometimes to cast a Session variable to a different
object, do what I need to do to it and then send it back to the Session. Is
there a way to do this without taking the variable out of the Session first?
I have 15-20 methods on my page codebehind that uses this Session variable,
so I would have to cast/modify/send 15-20 times. Can I do something like
this instead?
(DataSet)Session["Store"].Tables["Contract"].Columns.Add(...);
Or does it actually have to be cast outside of Session in order to work?
object, do what I need to do to it and then send it back to the Session. Is
there a way to do this without taking the variable out of the Session first?
I have 15-20 methods on my page codebehind that uses this Session variable,
so I would have to cast/modify/send 15-20 times. Can I do something like
this instead?
(DataSet)Session["Store"].Tables["Contract"].Columns.Add(...);
Or does it actually have to be cast outside of Session in order to work?