1,<% = %>Variables or methods in the percentage signs of angle brackets, such:
<Div>
<H1> Hello World
<P> <% = showhelloworld () %> </P>
</Div>
2,<% # %> Angle brackets (%) Pound number (#) Data Binding
For example: <% # databinder. (container. dataitem, "classname") %>
<Asp: datalist id = "DL" runat = "server">
<Itemtemplate> <% # databinder. (container. dataitem, "classname") %>
</Itemtemplate>
</ASP: datalist> </TD>
3,<% @ %> Angle brackets @ pound signs: Reference
For example, you can see the following in many. aspx pages:Code:
<% @ Page Language = "C #" codefile = "default. aspx. cs" inherits = "_ default" %>
4,<%> Usually put functions or methods in the center of the percentage sign in angle brackets, typical ASPProgramWriting Method.
Example: <tr>
<TD Height = "20">
<Div align = "center"> category: </div>
</TD>
<TD Height = "9"> & nbsp;
<% Function (); %>
</TD>
</Tr>
<% # Is a binding expression, that is, you must use the databind () method to use it <% #
<% = Displays the background information of the server.