Bind variables in the code file in the ASPX page

xiaoxiao2021-03-06  26

Example: Add a link

Front code:

# "Recommend.aspx? Categoryid =" bookid% >> Link <% # BOOKID%>

Backstage code:

Public int bookid;

BookId = 10;

This.page.dataBind (); red part is a part that must be declared, otherwise it will be wrong.

转载请注明原文地址:https://www.9cbs.com/read-81965.html

New Post(0)