Newbie Question

R

riversmithco

Hi

I am programming in Visual Basic.Net and I am not sure exactly what
effect marking fields as Shared at the class (page) level will have on
my .aspx pages. It seems that those values are then persisted between
postbacks, but it also seems that those values are actually static so
each user of my site gets the value in field at that time...correct?
 
S

Scott Allen

Shared means the field is associated with the type itself, and not with an
instance of the type. A shared field is not "persisted" really, because it
never goes away. Every user will see the same value for the field, because
there is only one storage location for the field in the entire application.
Make sense?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top