PDA

Click to See Complete Forum and Search --> : Modules and classes, public and Private etc


gtilles
Sep 16th, 2005, 01:00 PM
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....

gtilles
Sep 16th, 2005, 01:23 PM
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.

gtilles
Sep 16th, 2005, 01:58 PM
Hmm-I may have found my own answer.
http://aspalliance.com/70