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)
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)