D
D.
Hi,
I need to expose a variable to every aspx file of the applicationroot.
I tried with global.asax like this:
<%@ Application Language="VB" %>
<script runat="server">
public a as string
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
a="ok"
End Sub
</script>
When running an aspx-file in the applicationroot with this code:
<%@ Page Language="VB" %>
<%@ import namespace ="System.Web.UI.Page" %>
<% Response.Write(a)%>
i get the error: "Name 'a' is not declared"
Thanks for help
Dominique
I need to expose a variable to every aspx file of the applicationroot.
I tried with global.asax like this:
<%@ Application Language="VB" %>
<script runat="server">
public a as string
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
a="ok"
End Sub
</script>
When running an aspx-file in the applicationroot with this code:
<%@ Page Language="VB" %>
<%@ import namespace ="System.Web.UI.Page" %>
<% Response.Write(a)%>
i get the error: "Name 'a' is not declared"
Thanks for help
Dominique