asp.net 3.5 - Sharing data between selected users in web application c# -


My website uses a web user control The properties for user control will be common to a group of my users. Like if I have 20 users who access my website, then with 5 user control ID = 1, 4, we can have user control with id = 2. I have a property related to each user control, which I would like to share among users who access a common ID.

I thought about the following:

  • An id / property value array combination that protects the application variables
  • Creating Static Properties for User Control , Though I think the value will be appreciated among all users despite the id ID.
  • Or in the database [I want to reduce contact with the database.]

Please advise.

Not sure I understand you correctly; Assuming that you want to show / hide something based on the id

If this is the case, about:

You provide a switch case your control over the load; Which checks for id and set the visibility of the object that you want to share

For example, ID is the user role. So based on that, I would:

  switch (NROID) {Set the visibility of the case 1: // Control and leave others; Case 2: // Break something; ; Default: // Hide all breaks; }  

Just think loudly.


Comments