0
我想創建一個用戶可以修改自定義表格數據的頁面。我目前有一個自定義表格數據源和一個基本中繼器。轉型看起來是這樣的:更改中繼器中的自定義表格數據的值
<table border="1" style="border-collapse: collapse" width="200">
<tr>
<th>Node ID:</th>
<td><%# Eval("helpful_nodeID") %></td>
</tr>
<tr>
<th>Culture Code:</th>
<td><%# Eval("helpful_cultureCode") %></td>
</tr>
<tr>
<th>Not Helpful:</th>
<td><%# Eval("helpful_no") %></td>
</tr>
<tr>
<th>Helpful:</th>
<td><%# Eval("helpful_yes") %></td>
</tr>
<tr>
<button>Clear rating</button>
</tr>
</table>
所以我想我的按鈕有Eval
相反的效果,並強制0值"helpful_no"
和"helpful_yes"
。
有沒有簡單的方法,例如<% Set ("helpful_yes") = 0 %>
例如?
謝謝。你能指導我任何可以幫助我做到的資源嗎? – Deinonychus
@Deinonychus我已經添加資源到答案。 – mivra