Dynamically change the field value of DataList binding

zhaozj2021-02-16  78

Forum Question http://community.9cbs.net/expert/topic/3217/3217350.xml?temp =.2064478 The default binding field in Datalist is <% # DataBinder.eval (Container.DataItem, "storytname") %>

Implementation: <% # Check (Container.DataItem)%>

Public String Check (DATAROWVIEW Container) {// Judgment Condition // Return Container [ColumnIndex] Or Container ["Columnname"]}

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

New Post(0)