asp.net – 如何访问Global.asax静态成员?

如果我们在Global.asax中声明一个静态变量,那么如何在ASP.NET页面中访问它? script runat=server public static object myObject = new MyClass(); // Application_Start() and other stuff goes here./script 并且,这是一个存储全局对象(所

返回顶部