コード例 #1
0
        //删除等操作
        protected void Lnk_Click(object sender, GridViewCommandEventArgs e)
        {
            switch (e.CommandName)
            {
            case "Del":
                barBll.Del(Convert.ToInt32(e.CommandArgument));
                Response.Redirect("GuestTieShow.aspx?GID=" + ID + "&CateID=" + CateID);
                break;

            case "QList":
                Response.Redirect("GuestTieShow.aspx?GID=" + e.CommandArgument.ToString() + "&CateID=" + CateID);
                break;
            }
        }
コード例 #2
0
        protected void EGV_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            switch (e.CommandName.ToLower())
            {
            case "1":
                barBll.Del(DataConvert.CLng(e.CommandArgument));
                break;

            case "2":
                cateBll.Del(DataConvert.CLng(e.CommandArgument));
                break;

            case "3":
                askBll.Del(DataConvert.CLng(e.CommandArgument));
                break;
            }
            MyBind();
        }