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 is smart navigation?

1 Answers  


Is asp.net different from asp? If yes, explain how?

0 Answers  


what is code access security,role based security explain with example

1 Answers   Infosys,


What is preprocessor in .net and type, where it use?

0 Answers  


Describe how ASP.NET maintains process isolation for each Web application?

0 Answers   B-Ways TecnoSoft,






Explain the asp.net page life cycle.

0 Answers  


can i call the java script to code behind file?if yes how?

4 Answers   Wipro,


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

0 Answers  


i have a register form & in that form i have a 2 textboxes for entering name&age.my doubt is that how can i provide error message like "invalid entry" when user enter a invalid name/age(eg:user enter name as #%%%##daff,and age as 1000.)in that textboxes.I want code.

3 Answers  


Is asp.net core faster?

0 Answers  


What are the Types of state management techniques

0 Answers   Digital GlobalSoft,


• What Session State providers are available in ASP.NET? What are the pros and cons of each?

2 Answers   Infosys,


Categories