protected void LinkButton1_Click(object sender, EventArgs e) { B_Content bcon = new B_Content(); LinkButton lb = (LinkButton)sender; GridViewRow gvr = (GridViewRow)lb.NamingContainer; M_CollectionInfo mc = bc.GetSelect(DataConverter.CLng(Egv.DataKeys[gvr.RowIndex].Value)); DataTable dtitem = bcon.GetCommonByItem(mc.ModeID, mc.NodeID, mc.CollID); if (dtitem.Rows.Count > 0) { int gid = DataConverter.CLng(dtitem.Rows[0]["GeneralID"].ToString()); bcon.DelContent(gid); bc.GetDelete(mc.C_IID); } myBind(); }