摘要: 做asp.net有六年了,Repeater控件使用了无数次,但每次都是只做显示。 今天这个需要编辑和删除功能,google了一下。Repeater需要加OnItemDataBound事件。OnItemCommand="Repeater1_ItemCommand"1.删除功能和GridView控件差不多,前台一个Button,设置Button的CommandArgument='<%#Eval("Id")%>'CommandName="Delete"这里注意的一点是CommandArgument的值一定要用单引 阅读全文
posted @ 2012-02-25 21:16 红魔 阅读(1276) 评论(0) 推荐(2) 编辑