In asp.net applications, the <%@%>, <%#%>, <%=%> that are commonly used on asp.net pages. Use the <%$%> binding resource project in a globalized project to use <%:%> bind viewdata in asp.net mvc.
<%@%> is primarily used to define page, introduce controls, components, set cache, and so on in a Web page:
<%@ Page%>
<%@ Assembly%>
<%@ Import%>
<%@ MasterType%>
<%@ OutputCache%>
<%@ PreviousPageType%>
<%@ Reference%>
<%@ Register%>
<%#%> is mainly used to bind background data to the foreground, generally in the background need to have a corresponding DataBind () in the execution binding. <asp:gridview id= "gvproducts" runat= "Server" >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<%# Eval ("ProductName")%>
<ItemTemplate>
<asp:TemplateField>
<Columns>
<asp:GridView>
<%=%> is primarily used to enter background variables in the foreground.
<%= Page.IsPostBack%>
<%$%> is used to specify the resource items for the foreground page in the globalization solution.
<asp:label id= "Lblamount" runat= "Server" text= "<%$ resources:testresources, TotalAmount%>" >
<asp:Label>
<%:%> binds viewdata in the ASP.net MVC project.
<%: viewdata["message"]%> 1: <asp:gridview id= "gvproducts" runat= "Server" > 2: <Columns> 3: <asp: Templatefield> 4: <ItemTemplate> 5: <%# Eval ("ProductName")%> 6: <ItemTemplate> 7: <asp: Templatefield> 8: <Columns> 9: <asp:GridView>