I have a webapplication with code written in VB.NET 2003. The application contains several webpages. Some code is more or less common for all pages. This code is gathered in a vb file. All pages inherits this vb file. My problem is that I can't refer to controls common to all webpages in the vb file. As soon as the code includes reference to a control I have to copy the same code to all pages. Is there a way to put this type of code in the vb file instead?