有很多时间在想怎么删除gridview的行

下面就简单介绍献丑一下我是怎么用的

<asp:TemplateField>
    
<ItemTemplate>
        
<asp:Button runat="server" CommandName="Delete" OnClientClick="return confirm('您确认要删除吗?')" Text="删除" />
    
</ItemTemplate>
</asp:TemplateField>

再加上RowDeleting事件就ok啦

 

自我感觉比清清月儿的要简单明了

相关文章:

  • 2021-08-17
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2022-02-06
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
相关资源
相似解决方案