A
AG
I am working on a web app using both C# and VB. Yes, there is a reason for
it.
All the code behind is C#.
In the web.config I have the following
<compilation debug="true">
<codeSubDirectories>
<add directoryName="VB_Code"/>
<add directoryName="Csharp_Code"/>
</codeSubDirectories>
</compilation>
There are public classes in the appropriate folders of each language type.
I can reference any class from the pages' code behind.
I can reference VB classes from the C# classes in the App_Code\Csharp_Code
folder.
I can reference VB classes from other VB classes.
I cna reference C# classes from other C# classed.
However I can't reference any C# classes from the VB classes in the
AppCode\VB_Code.
The error indicates that the class is not defined.
Can anyone explain this and possibly tell me how to reference the C# classes
from the VB classes?
TIA
it.
All the code behind is C#.
In the web.config I have the following
<compilation debug="true">
<codeSubDirectories>
<add directoryName="VB_Code"/>
<add directoryName="Csharp_Code"/>
</codeSubDirectories>
</compilation>
There are public classes in the appropriate folders of each language type.
I can reference any class from the pages' code behind.
I can reference VB classes from the C# classes in the App_Code\Csharp_Code
folder.
I can reference VB classes from other VB classes.
I cna reference C# classes from other C# classed.
However I can't reference any C# classes from the VB classes in the
AppCode\VB_Code.
The error indicates that the class is not defined.
Can anyone explain this and possibly tell me how to reference the C# classes
from the VB classes?
TIA