C
chrisd
Heya,
I might be going about this in completely the wrong fasion, I am more
of a PHP developer, but I am trying to build a collection of classes in
ASP.Net to implement in some aspx pages but also in other classes.
I can make an aspx page reference a class Class1 in namespace
NameSpace1 using
<%@ Assembly Src="../App_Code/NameSpace1.vb" %>
I also have a class in another file called DBConn which is in
NameSpace2. Intellisense lets me add 'Imports NameSpace2' or 'Imports
NameSpace2.DBConn' but when I reload the page I get
BC30466: Namespace or type 'NameSpace2' for the Imports 'NameSpace2'
cannot be found.
OR
'BC30466: Namespace or type 'DBconn' for the Imports
'NameSpace2.DBconn' cannot be found.
What am I doing wrong, what is the best way of includign one class
within another.. any help would be much appreciated!!
I might be going about this in completely the wrong fasion, I am more
of a PHP developer, but I am trying to build a collection of classes in
ASP.Net to implement in some aspx pages but also in other classes.
I can make an aspx page reference a class Class1 in namespace
NameSpace1 using
<%@ Assembly Src="../App_Code/NameSpace1.vb" %>
I also have a class in another file called DBConn which is in
NameSpace2. Intellisense lets me add 'Imports NameSpace2' or 'Imports
NameSpace2.DBConn' but when I reload the page I get
BC30466: Namespace or type 'NameSpace2' for the Imports 'NameSpace2'
cannot be found.
OR
'BC30466: Namespace or type 'DBconn' for the Imports
'NameSpace2.DBconn' cannot be found.
What am I doing wrong, what is the best way of includign one class
within another.. any help would be much appreciated!!