Is there any solution???
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.dk> wrote in message
news:1153561541.5...@i3g2000cwc.googlegroups.com...
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/
===================================
"shwetu" <shwetu....@gmail.com> wrote in message
news:1154165003....@i3g2000cwc.googlegroups.com...
Juan,
> 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 )
Does this also work for code files placed in other folders? E.g.
<webroot>
<App_Code>
<App_Code\VB>
MyClass.vb
<App_Code\CS>
MyClass.cs
<home>
default.aspx
default.aspx.vb
<welcome>
default.aspx
default.aspx.cs
Mark
No, Mark.
You can't place *.vb and .cs files in different directories
of your app and expect them to compile [ wouldn't that be nice... :-) ]
The VB/CS code subdirectories are *only* for class files.
The code in each of the dirs declared in web.config will be compiled to a separate assembly.
An alternate way to handle this would be to compile your different-language source code
to an assembly which you place in the /bin directory, and not upload the source files at all.
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/
===================================
"Mark Rae" <ma...@markNOSPAMrae.com> wrote in message news:ODVKp5ws...@TK2MSFTNGP02.phx.gbl...
> re:
>> Does this also work for code files placed in other folders? E.g.
>> <home>
>> default.aspx
>> default.aspx.vb
>> <welcome>
>> default.aspx
>> default.aspx.cs
>
> No, Mark.
>
> You can't place *.vb and .cs files in different directories
> of your app and expect them to compile [ wouldn't that be nice... :-) ]
Hurrah! That's precisely what I was hoping you'd say! Long story, but thank
God for that!
> The VB/CS code subdirectories are *only* for class files.
> The code in each of the dirs declared in web.config will be compiled to a
> separate assembly.
Makes sense, now you come to mention it...
> An alternate way to handle this would be to compile your
> different-language source code
> to an assembly which you place in the /bin directory, and not upload the
> source files at all.
Or, even better, just stick to C#... :-)
<ducks and covers>