I ma trying to store an asp.net table in a session state variable and then when the page is posted back keep the table without having to requery the server. However, I can't get it to work, here is the code I'm using, if someone could point me in the right direction it would be much apprectiated:

Protected WithEvents tableAppointments As System.Web.UI.WebControls.Table

If Page.IsPostBack = False Then



tableAppointments = CType(Session("s_tableAppointments"), Table)

End If