Click here to Skip to main content
15,919,613 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: AJAX timer control Pin
Sandeep Akhare8-Aug-08 3:50
Sandeep Akhare8-Aug-08 3:50 
GeneralRe: AJAX timer control Pin
eyeseetee8-Aug-08 4:10
eyeseetee8-Aug-08 4:10 
GeneralRe: AJAX timer control Pin
Sandeep Akhare8-Aug-08 4:23
Sandeep Akhare8-Aug-08 4:23 
GeneralRe: AJAX timer control Pin
eyeseetee8-Aug-08 4:41
eyeseetee8-Aug-08 4:41 
AnswerRe: AJAX timer control Pin
Nitin_75112-Dec-09 0:24
Nitin_75112-Dec-09 0:24 
QuestionImage Click event hide/show TD column Pin
Member 38798818-Aug-08 2:13
Member 38798818-Aug-08 2:13 
AnswerRe: Image Click event hide/show TD column Pin
Perspx8-Aug-08 2:39
Perspx8-Aug-08 2:39 
Questionproblem with session variables Pin
nevincm8-Aug-08 1:28
nevincm8-Aug-08 1:28 
hi all,

I used this site a reference for many thing . I got answers from other,s post itself .Rarely i posted questions

Now i am facing a problem . I were using module variables in application .Now we chnaging to session varibles

I am using an object of a class in each webpage . since i dont want to declare that object in each function i am declaring at the form level

when i was using module variable it was not giving any error
i changed it to session variable . Now it s giving an error

error is pasted below

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.

so i added EnableSessionState="True" to page directive . then also it is giving error

this is the code that gave the error
Partial Public Class Chart
    Inherits System.Web.UI.Page
     Dim ObjCls As New MVCTM.ClsFetchApply("", Session("country"))
     Dim OraMod As New MVCTM.ModMain(Session("country"))    Dim dt As New DataTable()
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load


when i changed the declaration in to form load it is not giving any error

Partial Public Class Chart
    Inherits System.Web.UI.Page
    
    Dim dt As New DataTable()
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 Dim ObjCls As New MVCTM.ClsFetchApply("", Session("country"))
        Dim OraMod As New MVCTM.ModMain(Session("country"))



Can any one suggest me a solution

thanks & regards

nevviin
AnswerRe: problem with session variables Pin
janakinandhu8-Aug-08 2:04
janakinandhu8-Aug-08 2:04 
GeneralRe: problem with session variables Pin
nevincm8-Aug-08 3:03
nevincm8-Aug-08 3:03 
AnswerRe: problem with session variables Pin
Guffa8-Aug-08 3:47
Guffa8-Aug-08 3:47 
AnswerRe: problem with session variables Pin
NeverHeardOfMe8-Aug-08 4:48
NeverHeardOfMe8-Aug-08 4:48 
Question.gif image animation is not working when heavy javascript code runs. Pin
rahul21nov8-Aug-08 0:50
rahul21nov8-Aug-08 0:50 
Questionunable to log off Pin
pijush dubey8-Aug-08 0:07
pijush dubey8-Aug-08 0:07 
AnswerRe: unable to log off Pin
nagendrathecoder8-Aug-08 0:20
nagendrathecoder8-Aug-08 0:20 
AnswerRe: unable to log off Pin
eyeseetee8-Aug-08 0:27
eyeseetee8-Aug-08 0:27 
GeneralRe: unable to log off Pin
nagendrathecoder8-Aug-08 0:29
nagendrathecoder8-Aug-08 0:29 
GeneralRe: unable to log off Pin
Abhijit Jana8-Aug-08 2:13
professionalAbhijit Jana8-Aug-08 2:13 
AnswerRe: unable to log off Pin
Brij8-Aug-08 1:30
mentorBrij8-Aug-08 1:30 
GeneralRe: unable to log off Pin
pijush dubey9-Aug-08 2:00
pijush dubey9-Aug-08 2:00 
QuestionHow to show MsgPanel in update panel Pin
Mandeep19817-Aug-08 23:48
Mandeep19817-Aug-08 23:48 
AnswerRe: How to show MsgPanel in update panel Pin
Bardy858-Aug-08 0:15
Bardy858-Aug-08 0:15 
QuestionHow to use flash sqf files in an ASP.NET page Pin
mrkeivan7-Aug-08 23:33
mrkeivan7-Aug-08 23:33 
AnswerRe: How to use flash sqf files in an ASP.NET page Pin
Abhijit Jana7-Aug-08 23:48
professionalAbhijit Jana7-Aug-08 23:48 
GeneralRe: How to use flash sqf files in an ASP.NET page Pin
mrkeivan7-Aug-08 23:55
mrkeivan7-Aug-08 23:55 

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.