S
sorCrer
Hi All,
I have searched for this problem but unusually have had no luck!
I have an .vb file in the code directory with the following simplified
code in it:
Namespace MyTest
Public Class returnClass
Public Shared Function returnString() As String
Return "test"
End Function
End Class
End Namespace
I now want to import this class into an aspx file. My .net
intellisense picks up the namespace and class and allows me to import
it as follows:
Imports MyTest.returnClass
and kicks out zero errors!
When I fire up the aspx page I get the 'dreaded':-
Compiler Error Message: BC30466: Namespace or type 'returnClass' for
the Imports 'MyTest.returnClass' cannot be found.
Note: The .vb file is not compiled but should compile at run time,
provided it is in the /code directory, should'nt it?
Help will be appreciated as would donations!
I have searched for this problem but unusually have had no luck!
I have an .vb file in the code directory with the following simplified
code in it:
Namespace MyTest
Public Class returnClass
Public Shared Function returnString() As String
Return "test"
End Function
End Class
End Namespace
I now want to import this class into an aspx file. My .net
intellisense picks up the namespace and class and allows me to import
it as follows:
Imports MyTest.returnClass
and kicks out zero errors!
When I fire up the aspx page I get the 'dreaded':-
Compiler Error Message: BC30466: Namespace or type 'returnClass' for
the Imports 'MyTest.returnClass' cannot be found.
Note: The .vb file is not compiled but should compile at run time,
provided it is in the /code directory, should'nt it?
Help will be appreciated as would donations!