Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

ok ive been through loads of pages showing me how to create a session variable, but when i try it i get an error. heres what i do:

 

i cerate a string called departent.

 

this is initialised with text from a text box

 

i then use the line "Session("department") = Department.text;

 

i get the error "(77): 'System.Web.UI.Page.Session' denotes a 'property' where a 'method' was expected"

 

i have tried loads of other things like

Session("SomeName") = Department.text

etc

etc

 

is there a namespace i need or do i have to create a session object(thought one was automatically created on the server)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...