protected void BindParameter() { DataTable dt = new DataTable(); dt = objBL_Laboratory.BL_BindParameter(objML_Laboratory); if (dt.Rows.Count > 0) { DlParameterMapping.DataSource = dt; DlParameterMapping.DataBind(); } }
protected void SelectTestParameter(object sender, EventArgs e) { DataTable dt = new DataTable(); objML_Laboratory.TestID = ddlTestName.SelectedItem.Text != "" ? ddlTestName.SelectedItem.Text : null; dt = objBL_Laboratory.BL_SelectTestParameterMapping(objML_Laboratory); if (dt.Rows.Count > 0) { DlParameterMapping.DataSource = dt; DlParameterMapping.DataBind(); btnSave.Text = "Update"; } else { BindParameter(); btnSave.Text = "Save"; } }