repeater控件怎么像gridview一样编辑 更新,删除啊?

babyshowlove babyshowlove 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
如题
附上我的repeater控件代码
<asp:Repeater ID="repPro" runat="server">
<HeaderTemplate>
<table id="grid" style=" font-size:13px; border-top-width: 0px; font-weight: normal; border-left-width: 0px; border-left-color: #cccccc; border-bottom-width: 0px; border-bottom-color: #cccccc; width: 100%; border-top-color: #cccccc; font-style: normal; background-color: #cccccc; border-right-width: 0px; text-decoration: none; border-right-color: #cccccc" cellspacing="1px" cellpadding="2px" rules="all" border="0">
<tr style=" font-weight: bold; font-style: normal; background-color: #eeeeee; text-decoration: none">
<td>商品名称</td>
<td>所属品牌</td>
<td>是否推荐</td>
<td>是否热卖</td>
<td>简介</td>
<td>库存数量</td>
<td>价格</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style=" font-weight: normal; font-style: normal; background-color: white; text-decoration: none">
<td><%#Eval("ProName") %></td>
<td><%#Brand((int)Eval("ProInfoID")) %></td>
<td><%#IsRight(Eval("Vpro"))%></td>
<td><%#IsRight(Eval("Hotpro")) %></td>
<td><%#Eval("Synopsis")==DBNull.Value?"暂无介绍":Eval("Synopsis") %></td>
<td><%#Eval("StoreNum") %></td>
<td><%#Eval("Price") %></td>
</tr>
</ItemTemplate>
<FooterTemplate>
<tr>
<td colspan="6">
</td>
<td>
<asp:LinkButton ID="LinkButton3" runat="server">删除</asp:LinkButton>
</td>
</tr>

</table>
</FooterTemplate>
</asp:Repeater>
...全文

相关推荐

评论 19
收藏 已收藏
分享
返回顶部
babyshowlove
.NET社区 62,272 成员 668,968 内容