Using a class within another class in asp.net
Posted
by Phil
on Stack Overflow
See other posts from Stack Overflow
or by Phil
Published on 2010-05-13T06:54:25Z
Indexed on
2010/05/13
7:04 UTC
Read the original article
Hit count: 233
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.
© Stack Overflow or respective owner