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.........
Loading
suresh ShewalePosted Dec 31, 2014, 5:57 AM
Mohan SubramanianPosted Dec 31, 2014, 5:52 AM
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.