前台:
<asp:LinkButton runat="server" ID="lbtnUp" CommandArgument='<%#Eval("id") %>' OnClick="lbtnUp_Click">修改</asp:LinkButton>
后台:
protected void lbtnUp_Click(object sender, EventArgs e)
{
string id = ((LinkButton)sender).CommandArgument;
common.salert(id);
}