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

Types of values mode can hold session state in Web.Config?

6 Answers   Accenture,


what is publisher?

0 Answers   Microsoft,


What are strong names?

0 Answers  


2. Why did you choose this career?

2 Answers   Schwartz Oil, Swatz Oils,


How does output caching work in ASP.NET?

0 Answers  






which is better arraylist or dictionary?

2 Answers  


List the advantages and disadvantages of user control an custom control?

0 Answers  


What is the size of Get method and how much data it can store?

0 Answers   HCL,


How many types of page.

5 Answers   TCS, Verinon Technology Solutions,


How do cookies work? Give an example of their abuse.

0 Answers  


Explain advantages of caching?

0 Answers  


What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?

0 Answers  


Categories