[MonoDevelop] Mono ASP.NET
peter
apvx95 at dsl.pipex.com
Sat May 20 08:47:38 EDT 2006
Florian Hester wrote:
>Mono says that CodeFile is an unknown attribute.
>
>Maybe .NET 2.0 supports it?
>
>
Perhaps. You can find the following at:
http://www.codeproject.com/aspnet/ComparisonASP1xASP20.asp
"The compilation models of ASP.NET 1.x and ASP.NET 2.0 are built on
completely different bases.
The new class-derivation model enables the page to define controls
without the need to have protected members created in the inherited
separation file, or to have explicit event definition.
Pages that use code separation take advantage of a feature known as
Partial Classes. When the page runs, ASP.NET 2.0 dynamically creates and
instantiates a class representing the page, and the compiler uses the
|CodeFile| attribute in the |@Page| directive to find the file
containing the code.
The |Inherits| attribute defines the name of the class that will be
created, and by default, use the page name as the basis for creating the
class name."
HTH
Peter
More information about the Monodevelop-list
mailing list