Rendering code declaration code and data binding

xiaoxiao2021-03-06  40

Rendering code syntax: <%%> and <% =%>

The code presentation block is represented by <% ...%> element, allowing the custom control content display, and executed in the rendering phase executed by the web form page. The following example illustrates how you can use them on an HTML content. <% @ Page language = "c #"%>

<% for (int I = 0; i <8; i ) {%>

Rendering with C # code

<% Response.write ("Hello World");%>

The same content. Declaring code syntax: