protected void btnGMI_REF_DeleteRecord_Click1(object sender, EventArgs e) { Status.Print(false, true, "AUDIT: ", LoginUser.ID + " Deleting GMI_REF Record" + lblGMI_REFHost.Text + " " + lblProcessID.Text + " " + LoginUser.ID); // Get the Hostname from the panel lable text and pass this user name GMI_REFRecordHandler GMI_REF = new GMI_REFRecordHandler(); try { GMI_REF.PRC_ARCHIVE_DEVICE(lblGMI_REFHost.Text, lblProcessID.Text, LoginUser.ID); } catch (Oracle.DataAccess.Client.OracleException Oe) { ExceptionMsg(Oe.ErrorCode.ToString()); } finally { } // refresh the gridview btnRefreshGMIREF_Click(sender, e); }
protected void btnRefreshGMIREF_Click(object sender, EventArgs e) { GridView_GMI_REF.DataSource = null; GridView_GMI_REF.DataBind(); // get the GMI_REF data for the host and bind it to the GMI_REF grid view string sqlGMI_REF = WebConfigurationManager.AppSettings["GMI_REF_select"] + "'" + lblGMI_REFHost.Text + "'"; List <GMI_REFRecord> dataset = new List <GMI_REFRecord>(); GMI_REFRecordHandler handler = new GMI_REFRecordHandler(); dataset = handler.GMI_REF_RecsAsList(sqlGMI_REF); GridView_GMI_REF.DataSource = dataset; GridView_GMI_REF.DataBind(); // cleanup dataset.Clear(); // Hide the current data panelCommit.Visible = false; }