Live2D 看板娘 / Demo

LinkButton 报错

    <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
            {
            }
        }

 

posted @ 2016-02-26 12:06  MChuang  阅读(248)  评论(0编辑  收藏  举报