asp.net删除数据

来源:百度知道 编辑:UC知道 时间:2024/05/10 18:58:02
怎么让点击删除后自动把那一行删除掉,不用脚本删除行,从数据库里从新读取数据
我没用gridview ,那个我觉得不好,我是用repeater,请问怎么实现?

<table style="border-collapse: collapse; text-align: left;" border="1" width="100%"
bordercolor="#cccccc" cellspacing="0" cellpadding="2">
<tr style="font-weight: bold; color: #666666; font-size: 12pt; background-color: #eeeeee;
height: 22px; text-align: center;">
<td>
id
</td>
<td>
name
</td>
<td width="32px">
删除</td>
</tr>
<asp:Repeater ID="Repeater1" runat="server" EnableTheming="False">
<ItemTemplate>
<tr style="color: #666666; font-size: 9pt; background-color: #fff; height: 22px;"