ASP.NET - How to combine C# code with VB in the same web application

by Neville 10. January 2010 11:04

There are many cases where you might want to combine C# classes with VB classes in the same website / web application. To do so, the following steps need to be followed:

  • Add sub-folders to your app_code folder - one for your C# code and a second for your VB code:
  • Place your code files in the appropriate folders - C# in the 'csCode' folder; VB in the 'vbCode' folder.
  • Add the lines shown below to your web.config (within the <compilation> tag)
  • Run/compile as normal!

Tags: , ,

ASP.NET Programming

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

Welcome

Crucial Solution is aimed at the budget-conscious business wanting to expand into the internet and e-commerce. Our clients tend to be smaller businesses and organisations who want to achieve an internet presence but need a down-to earth, cost-effective approach which is capable of growing with them as their business grows.

Visit www.crucialsolution.com.

Calendar

<<  July 2010  >>
MoTuWeThFrSaSu
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar