Click here to Skip to main content
15,888,802 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: where to start Pin
Bikash Prakash Dash8-May-13 4:35
Bikash Prakash Dash8-May-13 4:35 
Questionnew small C# web app Pin
dcof5-May-13 4:18
dcof5-May-13 4:18 
GeneralRe: new small C# web app Pin
jkirkerx5-May-13 8:47
professionaljkirkerx5-May-13 8:47 
GeneralRe: new small C# web app Pin
dcof5-May-13 17:46
dcof5-May-13 17:46 
GeneralRe: new small C# web app Pin
jkirkerx6-May-13 6:26
professionaljkirkerx6-May-13 6:26 
GeneralRe: new small C# web app Pin
dcof6-May-13 17:31
dcof6-May-13 17:31 
GeneralRe: new small C# web app Pin
jkirkerx7-May-13 6:35
professionaljkirkerx7-May-13 6:35 
QuestionSession state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the Pin
dd88gratefull4-May-13 8:21
dd88gratefull4-May-13 8:21 
Hi experts,

I stuck on this error message. can any one give me a hint?

in my code behind(ASP.net C# web form programming), I try to evaluate a session variable, then execute some codes... debug pops this error message(see below) every time when it runs into the session evaluation line. What is proper setting in webconfig to fix this? can u give a complete sample. I tried as message suggested, it still pops.

if (Session["name"] == NULL)
//Do sth

error message
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the \\ section in the application configuration

Thank you in advance

dd
AnswerRe: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the Pin
thewazz4-May-13 19:18
professionalthewazz4-May-13 19:18 
AnswerRe: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the Pin
Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)5-May-13 2:45
protectorTadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)5-May-13 2:45 
QuestionDisplay Message in Browser Console Window Pin
Abid Sayed4-May-13 6:37
Abid Sayed4-May-13 6:37 
AnswerRe: Display Message in Browser Console Window Pin
Ali Al Omairi(Abu AlHassan)4-May-13 21:18
professionalAli Al Omairi(Abu AlHassan)4-May-13 21:18 
Questionurl routing like as subdomain in asp.Net web Forms c# Pin
abdussalam1433-May-13 3:11
professionalabdussalam1433-May-13 3:11 
AnswerRe: url routing like as subdomain in asp.Net web Forms c# Pin
dusty_dex3-May-13 5:02
dusty_dex3-May-13 5:02 
AnswerRe: url routing like as subdomain in asp.Net web Forms c# Pin
Jasmine25013-May-13 5:14
Jasmine25013-May-13 5:14 
AnswerRe: url routing like as subdomain in asp.Net web Forms c# Pin
abdussalam1433-May-13 19:15
professionalabdussalam1433-May-13 19:15 
GeneralRe: url routing like as subdomain in asp.Net web Forms c# Pin
Jasmine25016-May-13 7:10
Jasmine25016-May-13 7:10 
GeneralRe: url routing like as subdomain in asp.Net web Forms c# Pin
abdussalam1436-May-13 20:06
professionalabdussalam1436-May-13 20:06 
QuestionPost Info to Particular Pages in FaceBook Pin
prasanth1002-May-13 9:25
prasanth1002-May-13 9:25 
AnswerRe: Post Info to Particular Pages in FaceBook Pin
Jasmine25013-May-13 5:29
Jasmine25013-May-13 5:29 
Questionwebform performance Pin
gaigoi1132-May-13 6:56
gaigoi1132-May-13 6:56 
AnswerRe: webform performance Pin
jkirkerx2-May-13 7:01
professionaljkirkerx2-May-13 7:01 
GeneralRe: webform performance Pin
gaigoi1132-May-13 7:15
gaigoi1132-May-13 7:15 
GeneralRe: webform performance Pin
jkirkerx2-May-13 9:26
professionaljkirkerx2-May-13 9:26 
QuestionASP.NET Tutorials Pin
Clark Kent1232-May-13 4:48
professionalClark Kent1232-May-13 4:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.