Web Forms Syntax

Defines the markup syntax that you can use to declaratively create an ASP.NET Web Forms page or user control, which are text files that have an .aspx or .ascx file name extension, respectively.

In This Section

  • Directive Syntax
    Details how to specify settings used when ASP.NET pages and user controls are requested, such as encoding, transaction semantics, session-state requirements, and so on.
  • Code Declaration Blocks
    Outlines the syntax for defining member variables, fields, methods, and properties that are compiled into the generated .NET class that represents a page or user control. For information about page compilation, see Web Forms Code Model.
  • Code Render Blocks
    Specifies how to define inline code or inline expressions that execute when a page or user control is rendered.
  • Server-Side Comments
    Outlines the syntax that allows you to include comments, which are not processed on the server, in a Web Forms page or user control.
  • Custom Server Control Syntax
    Allows you to declaratively include server controls that are authored by you or another control developer in a Web Forms page or user control.
  • Data Binding Expression Syntax
    Specifies how to declaratively create bindings between server control properties and data sources.
  • Server-Side Object Tag Syntax
    Describes how to declare and create instances of COM and Microsoft .NET Framework objects that run on the server.
  • Server-Side Include Directive Syntax
    Specifies how to enable developers to insert the contents of a specified file anywhere within an ASP.NET page or user control.
  • ASP.NET Syntax for HTML Server Controls
    Defines the syntax that you can use to declaratively author and programmatically manipulate HTML elements on a Web Forms page or user control.
  • ASP.NET Syntax for Web Server Controls
    Defines the syntax that you can use to declaratively author and programmatically manipulate Web server controls on a Web Forms page.
  • ASP.NET Syntax for Validation Server Controls
    Defines the syntax that you can include in a Web Forms page or user control to declaratively author server controls that validate user input.
  • ASP.NET Server Controls
    Describes how you can use ASP.NET server controls when you build Web Forms pages and user controls.