示例#1
0
        protected void gvResult_ItemCommand(object source, DataGridCommandEventArgs e)
        {
            if (e.CommandSource is LinkButton)
            {
                LinkButton l_lnkbtn_del = e.CommandSource as LinkButton;
                if (l_lnkbtn_del.Text.ToLower() == "delete")
                {
                    //pub_id
                    int S_PubID = System.Convert.ToInt32(((System.Web.UI.WebControls.TableRow)(e.Item)).Cells[0].Text);
                    int ret     = PE_DAL.DeleteRelatedPub(this.PubID, S_PubID);

                    if (ret > 0)
                    {
                        // Session[PubEntAdminManager.strReloadRelatedPub] = "true";
                        this.ReBindData();
                    }
                }
            }
        }