How do static properties work in an asp.net environment?
If I had a class with a static property that is set when a user loads a particular page, is that static value unique to that users session?
If I had a class with a static property that is set when a user loads a particular page, is that static value unique to that users session?
I know there are a lot of threads talking about this but so far I haven’t found one that helps my situation directly. I have members of the class that I need to access from both static and non-static methods. But if the members are non-static, I can’t seem to get to them from the static methods.
Is it safe to access asp.net session variables through static properties of a static object?
I have a [WebMethod] and i want to assign values to a text box using the this code:
I have ASP.NET application which is connected with SQL server using LINQ to SQL. Where as i have a static class , certainly it would work on application level. Where as I have created static object of DataContext in this static class.
I have not created any data context object in application except this. Where as i am using this static data context object for each data base manipulation.
Basic question – is it possible to access the current Page from a static class in ASP.NET?
in a .net web app is there something special about .aspx pages and the c# code behind pages that changes the behaviour of static variables.
Here is my sample code:
Hi can someone please tell me where the static variables are stored in asp.net aspx page.