前台
<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); }
Copyright © 2004-2024 Ynicp.com 版权所有 法律顾问:建纬(昆明)律师事务所 昆明市网翼通科技有限公司 滇ICP备08002592号-4