Run CSharp (c#) and VB code together in ASP.NET Website

Today I will show how easy would be to compile and run Vb and C# code together in ASP.NET Website

So, first of all  we need to add a few lines of code in web.config under system.web section:

   43  <codeSubDirectories>

   44         <add directoryName="vb" />

   45       </codeSubDirectories>

Then we  need to create a VB folder in App_Code folder of our website:

Now you are ready to run  :). Enjoy .
With regards,
Rado

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s