
This topic demonstrates how to create a Web page and user control that use the CodeBehind attribute of the @ Page directive, compile them, and then convert them to use the CodeFile attribute with a partial class in the code-behind files in the .NET Framework version 2.0. The new Web page code-behind model in ASP.NET version 2.0 is based on partial classes. The markup for the page is stored in one file – the .aspx file – and the code is defined in a partial class – the code-behind file. Converting your existing Web pages to the new code-behind model allows even greater separation of markup and code because you do not have to include instance ..
|