2
Answers

Program not recognizing global.asax variable

Ask a question
Anna Hawks

Anna Hawks

16y
8.3k
1
I have a Visual Studio 2005 C# web project. In the global.asax file, I have declared the sqlConnections I need for the programs. ONE of the web pages does not recognize the global.asax file.

When I try to write: ddConnect = Global.ddCon;
I get: "The name 'Global' does not exist in the current context.

Why are all the other pages finding it and THIS one is not?!

One other comment that might help is that I have an icon (to pretty up a header) and, although I DO have alternate text defined, I get:

"WCAG 1.1 : Image is missing a text equivalent (either an alt="X" or longdesc="X"). Consider brief alternative text that describes the information that the image conveys. You can use the picture properties dialog to add alternative text."

If I take out the earlier line trying to access the global file, THAT message goes away.

Any help would be GREATLY appreciated!

Answers (2)