The single App_Code directory can only contain files of the same language.
However, you can add subdirectories to the App_Code directory
in order to process multiple languages under the App_Code directory.
In order to do this, you need to register each subdirectory in the application's Web.config.
<configuration>
<system.web>
<compilation debug="false">
<codeSubDirectories>
<add directoryName="VB"/>
<add directoryName="CS"/>
</codeSubDirectories>
</compilation>
</system.web>
</configuration>
Then, simply creating the App_Code\VB and App_Code\CS directories,
and placing your VB and CS files in each, will allow you to use both languages in your app.
This only works in ASP.NET 2.0! ( and is quite easy to implement )
Juan T. Llibre, asp.net MVP
aspnetfaq.com :
http://www.aspnetfaq.com/
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================
"Jacob" <ja***@reimers.dkwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
>I am not aware of any solution for creating a secondary App_code
folder. I think the solution would be to translate the smallest
(/easiest) code file :-(
shwetu wrote:
>If i place vb and cs class files together in App_Code in asp.net 2.0 i
get error that i can't place as they us a different language which is
not allowed as they have to be complied together.
Is there any solution???