This sentence program is often used when binding data
: <% # Databinder.eval (container.dataitem, "xxxx")%> or
<% # DataBinder.eval (Container, "DataItem.xxxx")%>
Today, I learned one, and Microsoft also said that this method is more efficient than the above two.
<% # (DATAROWVIEW) Container.DataItem) ["xxxx"]%>
Very useful, so you can do a lot of things on the front page.
Also remember to use this must be imported into the namespace system.data in the front page, otherwise an error message will be generated.
<% @ Import namespace = "system.data"%>
This usage is actually the "DictionaryTry Container.DataItem) .Key%> is a truth.
The key is that container is something that is mysterious. Its namespace is System.comPonentModel. I also need further understanding for it.
Come on! Everyone!