Newbie Question

  • Thread starter Thread starter riversmithco
  • Start date Start date
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?
 
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?
 
Back
Top