Re: Which to use VB.NET or C#?



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
>
>
>
>


.



Relevant Pages

  • Re: Can I change the code of uploaded website using Visual Studio.net
    ... more DLLs which, typically, reside in the \bin folder under your webroot. ... compiles them. ... > Whole the code is put into a "Codes" folder and all the code files are ... recompile and deploy to your live server using the Copy Project button. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Set rsNames = New ADODB.Recordset causes "Complie error: Automation error"
    ... I roboot the computer and it compiles now. ... Actually if now I check reference ... of any madc from 2.5 to 2.8, ... > My problem was I couldn't recompile them, ...
    (microsoft.public.data.ado)
  • link a class from another project
    ... I have a couple projects that I basically use the same helper classes, ... a file in a folder outside my project. ... I'd rather not use a reference, ... recompile. ...
    (microsoft.public.vsnet.general)
  • Re: Referencing your other assemblies in projects
    ... Yeah, I know it seems weird, but I still put winforms applications under the ... I set the working folder ... My company sets up a "Release" folder for commonly used assemblies. ... the dietcoke manager can relatively reference ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Auto Referencing in Word Documnets
    ... *much* faster than browsing a folder structure. ... are still a large number of organizations using the hard-copy based system ... behind the coding may help me to think differently in an entirely ... when the reference number identified the physical file. ...
    (microsoft.public.word.docmanagement)

Loading