><script runat="server"> > <object id="MyObjectName" runat="server" scope="application" class="DotNetClassName" /> ></script> >Yes. Unfortunately, that doesn't work either.
>Application("MyObjectName") = myobject
>
>public KirtlandAssociates.Web.WebSecurity.Security security = new KirtlandAssociates.Web.WebSecurity.Security();Then, in Application_Start I add this code:
// Application["Security"] didn't work Application["KirtlandAssociates.Web.WebSecurity.Security"] = this.security;Now, I'd like to be able to access this new object. I tried accessing it from a web page using:
KirtlandAssociates.Web.WebSecurity.Security security = (KirtlandAssociates.Web.WebSecurity.Security) Application["Security"]; // This fails w/Object reference not set to an instance of an object Msg.Text = security.noAccessLink;What's the syntax for this?