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

I create small website, i want accept all the browser this website? what will do?

1 Answers  


What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?

0 Answers  


Difference between datagrid and datareader?

1 Answers  


COM+ Used ________________ Isolation Level

0 Answers   CTS,


How does a content page differ from a master page?

0 Answers  






What is application variable in asp.net?

0 Answers  


What are web beacons used for?

0 Answers  


Define the term Web Garden?

0 Answers   Sans Pareil IT Services,


What is the difference between session.abandon() vs clear()?

0 Answers  


Whats the use of @ Register directives ?

4 Answers  


Explain the difference between panel and groupbox classes using .net?

0 Answers  


1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?

0 Answers   Marlabs,


Categories