<asp:LinkButton ID="Link_change" OnClientClick='<%#ChangeStatus(Eval("OrderNumber")) %>' runat="server">发货</asp:LinkButton>
<asp:LinkButton ID="LinkButton1" OnClientClick="return confirm('是否删除')" CommandArgument='<%#Eval("tid") %>' OnClick="Delete" runat="server" Text="删除" >删除</asp:LinkButton>
public void Delete(object sender, EventArgs e) { try { int id = Convert.ToInt32((sender as LinkButton).CommandArgument); Model.C_shopGoodsType C_shopGoodsType = new BLL.C_shopGoodsType().GetModel(Convert.ToInt32(id)); C_shopGoodsType.isdelete = 1; new BLL.C_shopGoodsType().Update(C_shopGoodsType); } catch { } }