Is it possible to have C# and vb.net in the same asp.net website? without separating in class libraries.
Try this in the App_Code subfolder create 2 new subfolders, one for your C# classes and another for your VB.NET classes. After that specify these 2 folders in the web.config in the section like this:
<system.web>
<compilation debug="true">
<codeSubDirectories>
<add directoryName="CSharp"/>
<add directoryName="VB"/>
</codeSubDirectories>
</compilation>
Or you can create new project in other language and add referenc to it.
No - the compiler needs code files in different languages to be compiled separately. A C# class library cannot contain VB.NET code, simply because the compiler can't distinguish which code files are written in which language.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With