Using VB.NET and C# in the same ASP.NET 2.0 project
You know that your collegue has created a class with interesting method that you like to reuse in your ASP.NET 2.0 web project but your project is in C#. Instead of waisting time to rewriting the whole chunk of code that your collegue wrote you can simply reuse the code. The only need is to create a couple of subfolders, putting your classes, C# and VB.NET, in these separate subfolders and put some extra configuration in the web.config file.
So for example you add these subfolders to the App_Code folder: CSharp and VB.
In the web.config you put these lines in the element:


Leave a Comment