Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
QuestionHow to Change the Mouse Cursor outside the WinForm using C#? Pin
Khanh.p17-Jan-06 9:36
Khanh.p17-Jan-06 9:36 
AnswerRe: How to Change the Mouse Cursor outside the WinForm using C#? Pin
Christian Graus17-Jan-06 9:54
protectorChristian Graus17-Jan-06 9:54 
AnswerRe: How to Change the Mouse Cursor outside the WinForm using C#? Pin
Tom Larsen17-Jan-06 10:42
Tom Larsen17-Jan-06 10:42 
GeneralRe: How to Change the Mouse Cursor outside the WinForm using C#? Pin
Khanh.p17-Jan-06 15:17
Khanh.p17-Jan-06 15:17 
QuestionIE text boxes Pin
sowhatman0017-Jan-06 8:33
sowhatman0017-Jan-06 8:33 
QuestionHow to create netmodule in Visual Studio.net Pin
jinzhecheng17-Jan-06 8:19
jinzhecheng17-Jan-06 8:19 
AnswerRe: How to create netmodule in Visual Studio.net Pin
Dave Kreskowiak17-Jan-06 9:49
mveDave Kreskowiak17-Jan-06 9:49 
QuestionSession problem Pin
Snowjim17-Jan-06 8:05
Snowjim17-Jan-06 8:05 
Hey!

I am running Visual Studio 2005 professional.
I am now working on a webproject where i need to use sessions

I store sessions like this
<br />
                    Session.Timeout = 30;<br />
                    Session.Add("profileId", profileId);<br />


and im getting the sessions by this code:
<br />
        try<br />
        {<br />
            if (Session["profileId"] != null)<br />
            {<br />
                mUserId = int.Parse(Session["profileId"].ToString());<br />
                postMessage.Controls.Add(LoadControl("~/common/uc/loginBox.ascx"));<br />
            }<br />
        }<br />
        catch (Exception ex) { throw (ex); }<br />


The problem is when we reach the if i get a error:

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 <configuration>\<system.web>\<httpmodules> section in the application configuration.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: 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 <configuration>\<system.web>\<httpmodules> section in the application configuration.

Any ide what i need to do? i havent had this problem before?

Best Regards
Jimmy
AnswerRe: Session problem Pin
siva pinnaka17-Jan-06 10:27
siva pinnaka17-Jan-06 10:27 
AnswerRe: Session problem Pin
Guffa17-Jan-06 10:29
Guffa17-Jan-06 10:29 
GeneralRe: Session problem Pin
Snowjim18-Jan-06 9:03
Snowjim18-Jan-06 9:03 
AnswerRe: Session problem Pin
Snowjim18-Jan-06 10:10
Snowjim18-Jan-06 10:10 
QuestionHashtable problem... Pin
Chris Richner17-Jan-06 6:51
Chris Richner17-Jan-06 6:51 
AnswerRe: Hashtable problem... Pin
User 665817-Jan-06 7:39
User 665817-Jan-06 7:39 
QuestionRe: Hashtable problem... Pin
Chris Richner17-Jan-06 7:54
Chris Richner17-Jan-06 7:54 
AnswerRe: Hashtable problem... Pin
User 665817-Jan-06 8:00
User 665817-Jan-06 8:00 
GeneralRe: Hashtable problem... Pin
Chris Richner17-Jan-06 23:12
Chris Richner17-Jan-06 23:12 
GeneralRe: Hashtable problem... Pin
User 665818-Jan-06 2:14
User 665818-Jan-06 2:14 
GeneralRe: Hashtable problem... Pin
Chris Richner18-Jan-06 5:46
Chris Richner18-Jan-06 5:46 
Questioncustom attribute serialization in C# Pin
softplanner17-Jan-06 6:49
softplanner17-Jan-06 6:49 
QuestionSerial Port Status Reader Pin
kinder202317-Jan-06 6:33
kinder202317-Jan-06 6:33 
AnswerRe: Serial Port Status Reader Pin
Dave Kreskowiak17-Jan-06 8:16
mveDave Kreskowiak17-Jan-06 8:16 
Questionsession management using sql server Pin
mevir17-Jan-06 6:10
mevir17-Jan-06 6:10 
QuestionUpdate the dataset into the original database Pin
Sasuko17-Jan-06 5:05
Sasuko17-Jan-06 5:05 
AnswerRe: Update the dataset into the original database Pin
Christian Graus17-Jan-06 9:21
protectorChristian Graus17-Jan-06 9:21 

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.