Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 using both C# & VB in same project

Author  Topic 

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-06-30 : 23:02:30
Let s say we have a VB open project with all .aspx and aspx.vb files How to add a new class or file but in C# so that I can use both the vb and C# files or classes in the same project

Thank you

dfiala
Posting Yak Master

116 Posts

Posted - 2006-07-01 : 06:43:10
You can't.

C# and VB can be used in the same solution, but each must be in its own project. They have separate compilers and cannot be mixed.

Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blogbaby
Microsoft MVP
Go to Top of Page

rtutus
Aged Yak Warrior

522 Posts

Posted - 2006-07-01 : 12:28:21
Ok dean Thanks. just to let you know
i heard that s possible in .Net 2
check this: Using VB.NET and C# in the same ASP.NET 2.0 project
http://blog.krisvandermast.com/UsingVBNETAndCInTheSameASPNET20Project.aspx
Go to Top of Page
   

- Advertisement -