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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.