|
-
Sep 16th, 2005, 01:00 PM
#1
Thread Starter
Hyperactive Member
Modules and classes, public and Private etc
I have noticed that when I write my own class and declare it public in a Public Module I have access to my classes public methods from all my pages.
Which is what I want but I also notice that if I access my pages from another machine it also shares the same instatiated class variables.
For instance if I run my ASP.net project on the local machine and set a string obj.value="test"
I go to another machine and I see that it's obj.value="test" is the same.
I want to access my class from all pages in my project but I don't want all users sharing the same class values. Everyone should have there own instatiated class values to manipulate.
What am I doing wrong here? THX....
Truly, you have a dizzying intellect.
-
Sep 16th, 2005, 01:23 PM
#2
Thread Starter
Hyperactive Member
Re: Modules and classes, public and Private etc
After more thought it seems that my original idea of using the session object works well for this case-it just seems to me a nice idea to be able to have a instatiated class that I can use throughout my project that is unique to my session.
Truly, you have a dizzying intellect.
-
Sep 16th, 2005, 01:58 PM
#3
Thread Starter
Hyperactive Member
Re: Modules and classes, public and Private etc
Hmm-I may have found my own answer.
http://aspalliance.com/70
Truly, you have a dizzying intellect.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|