hi all...
i have a problem with Session variable in VB.NET in VS2005
i have declared it like this
dim Application as String
Session("Application")=c //c is a string...a value returned from a database
but it showed an error like
Session is not declared
So I used
imports system.web.httpcontex
current.Session("Application")=c
but when i assigned this session variable to a textbox it showed an error like this
"Reference to a non shared member requires an object reference"
The assignment was like this
me.Textbox1.Text=current.Session("Application")
when i assigned like this instead of the above
me.Textbox1.Text=Session("Application")
it showed error like "Session is not declared"
Please help me
i have a problem with Session variable in VB.NET in VS2005
i have declared it like this
dim Application as String
Session("Application")=c //c is a string...a value returned from a database
but it showed an error like
Session is not declared
So I used
imports system.web.httpcontex
current.Session("Application")=c
but when i assigned this session variable to a textbox it showed an error like this
"Reference to a non shared member requires an object reference"
The assignment was like this
me.Textbox1.Text=current.Session("Application")
when i assigned like this instead of the above
me.Textbox1.Text=Session("Application")
it showed error like "Session is not declared"
Please help me