re:
I'm not sure why global.asax would ever have an @ Page directive.
The doc refers to the changes made by project *conversions*.
As usual with MS documentation, you need to interpret it. ;-)
re:
adding the CodeBehind and Inherits attributes
and putting the .cs file in App_Code does work
Yup, but the explanation is nowhere to be found,
*except in that document*.
I, also, hate the idea of putting source code on a server.
I don't know who came up with that doozy, but they should
be hung by their you-know-whats for inflicting that on us.
I'm skipping that part entirely by manually compiling to assemblies
anything which would go into App_Code as raw code.
I see the App_Code directory as a security failpoint.
I'm not sure if there's any advantage any more to using
codebehind, anyway, particularly with global.asax.
If you can do anything with inline coding, or manually-compiled assemblies,
that you can do with codebehind, why should we have to go through the
additional contortions which codebehind requires ?
Do you know of anything which can be done in codebehind
which can't be done inline or with command-line compiled assemblies ?
I'm finding the codebehind model a bit hard to swallow these days
primarily because of the additional complexity which it requires,
and the usual explanation that it "separates UI from code" sounds,
increasingly, hollow.
I can separate UI from code with manually-compiled assemblies.
Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
==========================