G
Guest
Please help me how to access shared members in my global.asax in ASP.NET 2.0
This is what i do.
First I create a new website using VS.NET 2005. I select a location where
the website should be created.
Now VS.NET creates a default.aspx for me and a web.config.
I create a global.asax page and change it to look like this:
<%@ Application Language="VB" %>
<script runat="server">
Public Shared appArrList As ArrayList
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
appArrList = New ArrayList
End Sub
</script>
Now how do i access appArrList from my default.aspx.vb?
I am unable to do it.
And also my default.aspx.vb does not reside in a namespace.
It simply looks like this:
Public Class _default
Inherits System.Web.UI.Page
End Class
Not sure if this is important or not
please anyone help me out here coz ASP.NET 2.0 is making my life so much
harder then ASP.NET 1.0
This is what i do.
First I create a new website using VS.NET 2005. I select a location where
the website should be created.
Now VS.NET creates a default.aspx for me and a web.config.
I create a global.asax page and change it to look like this:
<%@ Application Language="VB" %>
<script runat="server">
Public Shared appArrList As ArrayList
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
appArrList = New ArrayList
End Sub
</script>
Now how do i access appArrList from my default.aspx.vb?
I am unable to do it.
And also my default.aspx.vb does not reside in a namespace.
It simply looks like this:
Public Class _default
Inherits System.Web.UI.Page
End Class
Not sure if this is important or not
please anyone help me out here coz ASP.NET 2.0 is making my life so much
harder then ASP.NET 1.0