.net repeater删除行
<td><asp:LinkButtonID="delLinkButton"runat="server"OnClientClick='returnconfirm("确定删除...
<td><asp:LinkButton ID="delLinkButton" runat="server" OnClientClick='return confirm("确定删除?")'
CommandName="del" CommandArgument='<%# Eval("dianneima") %>'>删 除</asp:LinkButton> </td>
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "del")
{
ShowMessage("删除成功!");
}
}
后台是那么写的,求大神,该怎么写删除语句?还有CommandArgument='<%# Eval("dianneima") %>'这个地面的Eval("dianneima")括号里的该怎么写?求大神 展开
CommandName="del" CommandArgument='<%# Eval("dianneima") %>'>删 除</asp:LinkButton> </td>
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "del")
{
ShowMessage("删除成功!");
}
}
后台是那么写的,求大神,该怎么写删除语句?还有CommandArgument='<%# Eval("dianneima") %>'这个地面的Eval("dianneima")括号里的该怎么写?求大神 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询