Re: Which to use VB.NET or C#?
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Sun, 16 Oct 2005 14:22:34 -0400
re:
> You can simply create your class libraries in a separate project and reference them.
> You can then just recompile them if you wish.
Are you saying that the App_Code directory is superfluous ?
;-)
re:
> The point I'm making is that it is entirely inaccurate to say that the App_Code folder
> is a security risk.
I don't know about "entirely".
In the scenarrio I describe, which is the currently recommended
scenario in the VS.NET docs, it's not "entirely inaccurate" at all.
Also, precompiling a Web site compiles only that site, not any child sites.
If a Web site contains a child folder that is marked as an application in IIS,
the child application is not compiled when you precompile the parent folder.
Just a few things to keep in mid... :o)
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"JIMCO Software" <contactus@xxxxxxxxxxxxxxxxx> wrote in message
news:eZm%232Ln0FHA.3956@xxxxxxxxxxxxxxxxxxxxxxx
> Juan T. Llibre wrote:
>> re:
>>> This situation has not changed from 2003.
>>
>> But it has...
>>
>> The App_Code directory didn't exist in 2003.
>>
>> You couldn't upload source code in 2003, and have it compiled,
>> unless you used "src" in the Page directive, which is bonkers, anyway.
> Or if you used inline code. Either one of these options is a bad idea because you lose
> the benefit of batch compilation.
>
> By "this situation", I was referring to the fact that you have the option to copy source
> to the server or not copy source. That's your choice.
>> If you need to have the most effective option, if your site needs
>> to be updated frequently, pre-compiling is not the best option, imho.
>>
>> Re-compiling only the parts which have changed seems more effective.
> I agree. Once again, this hasn't changed from 2003. You just have more options now.
> You can simply create your class libraries in a separate project and reference them.
> You can then just recompile them if you wish. As long as you don't break the binding,
> you'll be fine.
>
> The point I'm making is that it is entirely inaccurate to say that the App_Code folder
> is a security risk.
>
> --
> Jim Cheshire
> JIMCO Software
> http://www.jimcosoftware.com
>
>
>
>
.
- References:
- Which to use VB.NET or C#?
- From: Jon S via DotNetMonster.com
- Re: Which to use VB.NET or C#?
- From: Jesse Liberty
- Re: Which to use VB.NET or C#?
- From: WJ
- Re: Which to use VB.NET or C#?
- From: JIMCO Software
- Re: Which to use VB.NET or C#?
- From: Juan T. Llibre
- Re: Which to use VB.NET or C#?
- From: Juan T. Llibre
- Re: Which to use VB.NET or C#?
- From: JIMCO Software
- Re: Which to use VB.NET or C#?
- From: Juan T. Llibre
- Re: Which to use VB.NET or C#?
- From: JIMCO Software
- Which to use VB.NET or C#?
- Prev by Date: Re: Which to use VB.NET or C#?
- Next by Date: Re: Stumped by VS2005
- Previous by thread: Re: Which to use VB.NET or C#?
- Next by thread: Re: Which to use VB.NET or C#?
- Index(es):
Relevant Pages
|
Loading