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 r the page life cycle in asp.net page?

6 Answers  


What are the various ways of securing a web site that could prevent from hacking etc ?

1 Answers  


What is WebService ?

8 Answers   Tanla Solutions, Yahoo,


what is differences between bind and eval?

2 Answers  


What is mta?

0 Answers  






What is the difference between a default skin and a named skin?

0 Answers   MindCracker,


Can session variables be accessed from code-behind?

2 Answers   Microsoft, RMS,


Explain about asp.net state management?

0 Answers  


Will session work if cookies is disabled?

0 Answers  


How to add DateTime Control in normal DataGrid Server Control?

0 Answers  


i need code for insert,delete,update adn display records using stored procedure in C#

2 Answers  


Define application state variable and session state variable?

0 Answers   UGC Corporation,


Categories