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 code on many. aspx pages:
<% @ 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 ASP Programming Method.
Example: <tr>
<Td height = "20">
<Div align = "center"> category: </div>
</TD>
<TD Height = "9"> & nbsp;
<% Function (); %>
</TD>
</Tr>