Expression : Expression « ASP.Net Instroduction « ASP.NET Tutorial






<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>Sample Page</title>
    <script runat="server">
      void Page_Load() 
      {
        messageLabel.Text = "Hello World";
      }
    </script>
  </head>
  <body>
    <form runat="server">
        <asp:Label id="messageLabel" runat="server" />
        <%-- Declare the title as string and set it --%>
        <% string Title = "This is generated by a code render block."; %>
        <%= Title %>
    </form>
  </body>
</html>








1.4.Expression
1.4.1.Expression