J
josh harmon
I've got the following simple line of code in a codefile in an asp.net
application. The codefile has a lot of common routines I use in several
applications. When I try to use a application variable it throws, "Object
reference not set to an instance of an object" errors. Can you not use
application variables in codefiles that aren't related to a page? I still
have the class set to inherit System.Web.UI.Page.... For what it's worth,
here's the code that's throwing the error:
Application("tmLastErr") = DateTime.Now
This works fine when set in a code behind file for a page (default.aspx.vb
for example) but not in common_code.vb.
Josh Harmon
J.Harmon[remove_to_email]@tcu.edu
application. The codefile has a lot of common routines I use in several
applications. When I try to use a application variable it throws, "Object
reference not set to an instance of an object" errors. Can you not use
application variables in codefiles that aren't related to a page? I still
have the class set to inherit System.Web.UI.Page.... For what it's worth,
here's the code that's throwing the error:
Application("tmLastErr") = DateTime.Now
This works fine when set in a code behind file for a page (default.aspx.vb
for example) but not in common_code.vb.
Josh Harmon
J.Harmon[remove_to_email]@tcu.edu