在后台获取前台Repeater里面的Button控件
<asp:Repeater ID="Repeater1" runat="server" >
<ItemTemplate >
<fieldset >
<legend ><%#Container.ItemIndex +1 %>
</legend>
<table width="100%" align="center" >
<tr>
<td align="left" ><strong>留言者网名:</strong><%#Eval("name")%></td>
</tr>
<tr>
<td align="left"><strong>留言的内容:</strong><%#Eval("content")%></td>
</tr>
<tr>
<td align="right" ><strong>留言的时间:</strong><%#Eval("time")%></td>
</tr>
<tr>
<td align="left" >
<asp:Button ID="Btnup" runat="server" Text="往上移" />
<asp:Button ID="Btndown" runat="server" Text="往下移" />
<asp:Button ID="Btndelete" runat="server" Text="删除" />
</td>
</tr>
</table>
</fieldset>
</ItemTemplate>
</asp:Repeater>
如题:我现在要在后台编程中获取到 Btnup,Btndown,Btndelete这三个Button控件并对他们编辑让他们各自实现自己的功能,有什么方法简单又清楚的呢?求教啊
<ItemTemplate >
<fieldset >
<legend ><%#Container.ItemIndex +1 %>
</legend>
<table width="100%" align="center" >
<tr>
<td align="left" ><strong>留言者网名:</strong><%#Eval("name")%></td>
</tr>
<tr>
<td align="left"><strong>留言的内容:</strong><%#Eval("content")%></td>
</tr>
<tr>
<td align="right" ><strong>留言的时间:</strong><%#Eval("time")%></td>
</tr>
<tr>
<td align="left" >
<asp:Button ID="Btnup" runat="server" Text="往上移" />
<asp:Button ID="Btndown" runat="server" Text="往下移" />
<asp:Button ID="Btndelete" runat="server" Text="删除" />
</td>
</tr>
</table>
</fieldset>
</ItemTemplate>
</asp:Repeater>
如题:我现在要在后台编程中获取到 Btnup,Btndown,Btndelete这三个Button控件并对他们编辑让他们各自实现自己的功能,有什么方法简单又清楚的呢?求教啊
...全文
相关推荐
用asp.net写的一段简单代码 求任意区间的素数
用asp.net写的一段简单代码 求任意区间的素数
Asp.Net Repeater中使用Button控件并响应单击操作的方法
Asp.Net Repeater的使用十分方便,用户可以根据自己的爱好来确定页面显示数据的样式。这里主要讲述Asp.Net Repeater中使用Button控件并响应单击操作的方法
代替repeater的前台方法
可以代替Repeater,所有的web控件在html中都有对应的,唯独repeater没有,但是这个用到的地方太多,故做了一个类似的。
Repeater控件绑定数据、分页、数据操作,最佳代码
Repeater控件绑定数据、分页、数据操作,最佳代码Repeater控件绑定数据、分页、数据操作,最佳代码Repeater控件绑定数据、分页、数据操作,最佳代码
Repeater事件OnItemCommand取得行内控件的方法
主要介绍了Repeater事件OnItemCommand取得行内控件的方法,有需要的朋友可以参考一下


