Last post Jun 02, 2007 02:41 PM by JeffreyABecker
May 31, 2007 09:11 AM|cheetahtech|LINK
Currently I am a VB.NET Developer and have been thinking for the past day that maybe I should switch to C#.
Can vb.net and c# pages talk to each other? I don't want to lose all the VB.NET pages I have made but want to start converting little by little. It makes sense that they should be able to work with each other in the same Web app. As long as the App_Code
folder isn't accessed. Is this true?
Help on this one.
May 31, 2007 10:08 AM|cheetahtech|LINK
Jun 01, 2007 08:56 AM|JeffreyABecker|LINK
In a .Net 2.0 "Website" all you have to do is specify the language in your page / control directive, in fact this is mandatory. Now if you're talking a web application project (in vs 2k5 sp1) you'll probably have to add a class library to the solution and
Jun 01, 2007 09:51 AM|cheetahtech|LINK
so it is true that a SINGLE Web Application can have both C# and VB.Net codebehinds?
Jun 02, 2007 02:41 PM|JeffreyABecker|LINK
Yeah, I mean it's really just dependent on your compilation model. Visual studio's "Web Application Projects" wont allow this because they process everything into a single assembly. You cant really generate mixed language assemblies w/o doing a lot of
work to merge two existing assemblies.