W
Web Search Store
Hello,
I made a web page using visual studio.
I also made a public class in the app_code folder called 'allvars'
In the main web page durning the page startup, I can refer to public shared
variables by simply saying:
x=allvars.variable1
where the allvars class looks like this:
Public Class allvars
Public Shared variable1 As Integer
end class
All seems well in development
But when I copy it to the web site folder (copy all files in the asp.net web
site (app_code folder too)
But when I call it, it gives this error:
Name 'allvars' is not declared.
So in development, it knows where the class is, but in the real web it
doesn't.
How do I solve this problem? I also tried publishing it to the web folder,
and that didn't work either.
I don't care about performance, or precompileing, just want it to work.
Thanks for any help!
Scott
I made a web page using visual studio.
I also made a public class in the app_code folder called 'allvars'
In the main web page durning the page startup, I can refer to public shared
variables by simply saying:
x=allvars.variable1
where the allvars class looks like this:
Public Class allvars
Public Shared variable1 As Integer
end class
All seems well in development
But when I copy it to the web site folder (copy all files in the asp.net web
site (app_code folder too)
But when I call it, it gives this error:
Name 'allvars' is not declared.
So in development, it knows where the class is, but in the real web it
doesn't.
How do I solve this problem? I also tried publishing it to the web folder,
and that didn't work either.
I don't care about performance, or precompileing, just want it to work.
Thanks for any help!
Scott