I want to know whether to use static variables in C# website where multiple user access the website across same page.
Or to use view state/hidden field
or to use properties
Or to use simple variables
Which is most preferable and standard way to use ?
Thanks in advance.........
How to use Varibles in code behind for C# web
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mohan Subramanian157 reputationPosted Dec 31, 2014, 12:52 AM EST
its depends upon your requirement. you can use static variable to show page to all users or you can use Cache for showing same page for all users.
suresh Shewale58 reputationPosted Dec 31, 2014, 12:57 AM EST