我在ItemTemplate中使用带有按钮控件的asp.net转发器 .
如何使用Repeater容器参数使按钮调用javascript函数?
我的中继器项目模板 -
<ItemTemplate>
<div class="item">
<table>
<tr><th><%# Eval("propid") %></th>
<td><input id="Button1" type="button" value="showit" runat="server" /></td></tr>
</table>
</div>
</ItemTemplate>
再次,我想在单击Button1时调用 showit(<%# Eval("propid") %>) javascript函数 .