<% $ %>
Obtain the message in app_globalresources. <asp: button id = "btnexecute" runat = "server" cssclass = "pressedbutton" font-bold = "true" text ="<% $ Resources: Message, b0011 %>"/>
retrieve *** from app_localresource ***. aspx. string <% $ resources: shoriym %> ">
Obtain the database connection string in the web. config file<ASP: sqldatasourceID= "Sqlperformance1"Runat= "Server"Connectionstring= "<% $ Connectionstrings: pubs %>"Selectcommand= "Select * From catalog"> </ASP: sqldatasource>
<% # %>
Data Binding
<Asp: Label id = "lblid" runat = "server" text ='<% # Eval ("menubig_id") %>'Visible = "false"> </ASP: Label>
<% = %>
Is to get the server variables on the client side, and pass the values to the foreground in the background
<Asp: Label id = "label2" runat = "server" cssclass = "label" width = "255px"> <% = Teststr %></ASP: Label>
There is a <% =... %> after this = sign, you can also call the C # method and write a mathematical expression. It differs from <% #... %> that the content in <% #... %> must be in the background.CodeIs displayed only after the databind () method is executed.