Session value in non static field in asp.net

videogamer

New Member
I need to get the current user id of the user and I tried the following code\[code\]ClsUser User = (ClsUser)Session["USER"];\[/code\]but it shows error that it should write in the non static function..so my question is is how to get the current session value in non static field
 
Back
Top