How can i include both C# and vb.net classes in same
solution?

Answers were Sorted based on User's Feedback



How can i include both C# and vb.net classes in same solution?..

Answer / roopesh m.k

Step 1:
It is possible,In app-Code folder create sub folders
named VB,CS(as you like) and clreate .vb class files in the
folder named VB and .cs class files in the CS folder.
Step 2:
Go to web.config file and mention the following
<compilation debug="false">
<codeSubDirectories>
<add directoryName="VB" />
<add directoryName="CS" />
</codeSubDirectories>
</compilation>

Is This Answer Correct ?    4 Yes 2 No

How can i include both C# and vb.net classes in same solution?..

Answer / romo

Its not possible to include both c# and vb.Net codes in
same solution. The reason is that the parser in .net only
knows one language at a time.

but its possible to refer a ddl assembly in c# which is
created by using vb.net

Is This Answer Correct ?    3 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

What are the advantages of asp.net mvc framework? : asp.net mvc

0 Answers  


What Are Different Types of Debbugers

2 Answers   Accenture, TCS, Wipro,


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?

0 Answers  


What is server side session?

0 Answers  


Explain what a diffgram is and a good use for one?

1 Answers   Siebel Systems, Syntax Softtech,






What is difference between asp.net and asp.net mvc? : Asp.Net MVC

0 Answers  


What are different transaction options?

2 Answers   Astadia,


what is the cursor

1 Answers   Wipro,


What is a viewbag?

0 Answers  


what is CLR?

3 Answers   PrimeLine,


Explain which is best suited place in the Application Start and Session_Start subroutines with an example?

3 Answers   Siebel,


What are the security types in asp.net?

0 Answers  


Categories