There is a project sln at http://www.developa.com/webapplication123.zip
It shows how to use ascx and custom controls.
And if you think about it, using the methods therein you could feasibly use one
of these controls to hold all your global variables accessing them at will.