This is an old revision of the document!
ASP.NET Page Structure
- directives
<%@ Page Language="VB" %>
- code declaration blocks
<script runat="server"> Sub Page_Load() messageLabel.Text = "Hello World!" End Sub </script>
- code render blocks
<% Dim Title As String = "This is generated by a code render block." %> <%= Title %>
- ASP.NET server controls
<asp:Label id="messageLabel" runat="server" />
- server-side comments
<%-- Declare the title as string and set it --%>
- literal text and HTML tags