前台: <td><asp:LinkButton id="btnDelFollowUp" Text="删除" runat="server" CommandName="delete" CommandArgument='<%# Eval("ID").ToString()%>' OnClick="btnDelFollowUp_Click"></asp:LinkButton></td>
报错如标题所示,请问应该怎么改好?
后台:
protected void btnDelFollowUp_Click(object sender,RepeaterCommandEventArgs e)
{
if (e.CommandName == "delete")
{
int id = int.Parse(e.CommandArgument.ToString());
funcDel(id);
}
}
达令说