我期待着一个能够表明我论坛中有多少答复专题的法典。 我有一个重复(REPEATER_1),以显示与标题和案文一样对每个专题的其他信息。 例如,为了获得所有权,我使用了:
<%# DataBinder.Eval(Container, "DataItem.title")%>
This works fine, but for counting replies, I need to access another table, and count all replies for this topic. I use the following SelectCommand:
"SELECT COUNT(ID) FROM [replies] WHERE parent= " & <%# DataBinder.Eval(Container, "DataItem.ID")%> & " ;"
But how do I execute this SelectCommand from within the Form (and within the repeater area) of the page using <%# XXXX.. %>
我知道有使用密码的替代品,但我正在采用这种方式;%# XXXX. %>
Also, what is it called when doing script inside a form using "<%# XXXX.. %>" ? It will make it easier for me to search on the web, as google or this website cannot search for "<%#"