If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Session State Variable and CType

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-04, 11:37
mmcdonald mmcdonald is offline
Registered User
 
Join Date: Mar 2004
Location: Glasgow, Scotland
Posts: 107
Smile Session State Variable and CType

Hi,

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

CreateTable()

Else

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

End If
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On