On the http://www.bkjia.com/kf/201203/122856.html, through the Code comparison, elaborated its writing superiority.
<Div>
<Ul>
<% TblName = "News"; Filed = "NewsID, Title, Time"; Num = 15; Sort = "[Time] DESC"; Page = true; %>
<% = Aspx (@"
<Li> <span> {2} </span> <a href = 'detail. aspx? NID = {0} '> {1} </a> </li>
") %>
</Ul>
</Div>
<Div>
<Span class = "pager"> <% = AspxP ("current") %> </span> <! -- Page number -->
</Div>
Filed = "NewsID, Title, Time"
<Li> <span> {2} </span> <a {0}> {1} </a>
In fact, it is the corresponding. Placeholder.
Example:
String a = "", B = "", c = "";
Console. Write ("Hello {0}, {1}, {2}", a, B, c );
Everyone should know this.
String a = "", B = "", c = "";
String. Format ("Hello {0}, {1}, {2}", a, B, c );
You can use String. Format to implement the preceding method.
Well, this simple method is used to replace all tags and output all data.
For detailed code, I will post it one by one.
Please pay attention to it.
From 19 shore