The ASP.NET single-file page model is similar to Active Server Pages (ASP) page structure in that script blocks that contain code come before HTML, and special markup tags can be used in the HTML. This topic describes the issues involved in updating your ASP code to ASP.NET.
The ASP.NET code-behind page model separates script-block code from the HTML and ASP.NET markup tags. For more information. For information about data-binding syntax that enables you to bind control property values to data.
All ASP.NET procedures and global variables should be declared within