Using a class within another class in asp.net
- by Phil
In my site I have class A which selects the required page module (blog,content,gallery etc). I also have class B which provides sqlclient database objects and sql statements.
If I use class B in a web form via "Imports Class B". I am able to access the contents.
I now would like to use class B within class A but am struggling to find the correct syntax for importing it. Please can someone give me a basic example.
We are coming from a classic asp background, and used to simply use includes.
We are using VB
Thanks.