protected void Page_Load(object sender, EventArgs e) { this.UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None; if (!IsPostBack) { GetMedicalTestChargesBL objGetMedicalTestChargesBL = new GetMedicalTestChargesBL(); ds1 = objGetMedicalTestChargesBL.GetMedicalTestCharges(); Label5.Text = "Rs. " + ds1.Tables[0].Rows[0]["MEDICAL_TEST_CHARGE"].ToString(); Label6.Text = "Rs. " + ds1.Tables[0].Rows[1]["MEDICAL_TEST_CHARGE"].ToString(); Label7.Text = "Rs. " + ds1.Tables[0].Rows[2]["MEDICAL_TEST_CHARGE"].ToString(); Label8.Text = "Rs. " + ds1.Tables[0].Rows[3]["MEDICAL_TEST_CHARGE"].ToString(); Label9.Text = "Rs. " + ds1.Tables[0].Rows[4]["MEDICAL_TEST_CHARGE"].ToString(); Label10.Text = "Rs. " + ds1.Tables[0].Rows[5]["MEDICAL_TEST_CHARGE"].ToString(); Label11.Text = "Rs. " + ds1.Tables[0].Rows[6]["MEDICAL_TEST_CHARGE"].ToString(); CheckBox1.Attributes.Add("Value", ds1.Tables[0].Rows[6]["ID"].ToString()); Label12.Text = "Rs. " + ds1.Tables[0].Rows[7]["MEDICAL_TEST_CHARGE"].ToString(); CheckBox2.Attributes.Add("Value", ds1.Tables[0].Rows[7]["ID"].ToString()); Label13.Text = "Rs. " + ds1.Tables[0].Rows[8]["MEDICAL_TEST_CHARGE"].ToString(); CheckBox3.Attributes.Add("Value", ds1.Tables[0].Rows[8]["ID"].ToString()); Label14.Text = "Rs. " + ds1.Tables[0].Rows[9]["MEDICAL_TEST_CHARGE"].ToString(); CheckBox4.Attributes.Add("Value", ds1.Tables[0].Rows[9]["ID"].ToString()); Label15.Text = "Rs. " + ds1.Tables[0].Rows[10]["MEDICAL_TEST_CHARGE"].ToString(); CheckBox5.Attributes.Add("Value", ds1.Tables[0].Rows[10]["ID"].ToString()); Label16.Text = "Rs. " + ds1.Tables[0].Rows[11]["MEDICAL_TEST_CHARGE"].ToString(); CheckBox6.Attributes.Add("Value", ds1.Tables[0].Rows[11]["ID"].ToString()); Label17.Text = "Rs. " + ds1.Tables[0].Rows[12]["MEDICAL_TEST_CHARGE"].ToString(); CheckBox7.Attributes.Add("Value", ds1.Tables[0].Rows[12]["ID"].ToString()); Label18.Text = "Rs. " + ds1.Tables[0].Rows[13]["MEDICAL_TEST_CHARGE"].ToString(); CheckBox8.Attributes.Add("Value", ds1.Tables[0].Rows[13]["ID"].ToString()); Label19.Text = "Rs. " + ds1.Tables[0].Rows[14]["MEDICAL_TEST_CHARGE"].ToString(); CheckBox9.Attributes.Add("Value", ds1.Tables[0].Rows[14]["ID"].ToString()); Label20.Text = ds1.Tables[0].Rows[15]["MEDICAL_TEST"].ToString(); CheckBox10.Attributes.Add("Value", ds1.Tables[0].Rows[15]["ID"].ToString()); Label32.Text = "Rs. " + ds1.Tables[0].Rows[15]["MEDICAL_TEST_CHARGE"].ToString(); Label21.Text = ds1.Tables[0].Rows[16]["MEDICAL_TEST"].ToString(); CheckBox11.Attributes.Add("Value", ds1.Tables[0].Rows[16]["ID"].ToString()); Label33.Text = "Rs. " + ds1.Tables[0].Rows[16]["MEDICAL_TEST_CHARGE"].ToString(); Label22.Text = ds1.Tables[0].Rows[17]["MEDICAL_TEST"].ToString(); CheckBox12.Attributes.Add("Value", ds1.Tables[0].Rows[17]["ID"].ToString()); Label34.Text = "Rs. " + ds1.Tables[0].Rows[17]["MEDICAL_TEST_CHARGE"].ToString(); Label23.Text = ds1.Tables[0].Rows[18]["MEDICAL_TEST"].ToString(); CheckBox13.Attributes.Add("Value", ds1.Tables[0].Rows[18]["ID"].ToString()); Label35.Text = "Rs. " + ds1.Tables[0].Rows[18]["MEDICAL_TEST_CHARGE"].ToString(); Label24.Text = ds1.Tables[0].Rows[19]["MEDICAL_TEST"].ToString(); CheckBox14.Attributes.Add("Value", ds1.Tables[0].Rows[19]["ID"].ToString()); Label36.Text = "Rs. " + ds1.Tables[0].Rows[19]["MEDICAL_TEST_CHARGE"].ToString(); Label25.Text = ds1.Tables[0].Rows[20]["MEDICAL_TEST"].ToString(); CheckBox15.Attributes.Add("Value", ds1.Tables[0].Rows[20]["ID"].ToString()); Label37.Text = "Rs. " + ds1.Tables[0].Rows[20]["MEDICAL_TEST_CHARGE"].ToString(); Label26.Text = ds1.Tables[0].Rows[21]["MEDICAL_TEST"].ToString(); CheckBox16.Attributes.Add("Value", ds1.Tables[0].Rows[21]["ID"].ToString()); Label38.Text = "Rs. " + ds1.Tables[0].Rows[21]["MEDICAL_TEST_CHARGE"].ToString(); Label27.Text = ds1.Tables[0].Rows[22]["MEDICAL_TEST"].ToString(); CheckBox17.Attributes.Add("Value", ds1.Tables[0].Rows[22]["ID"].ToString()); Label39.Text = "Rs. " + ds1.Tables[0].Rows[22]["MEDICAL_TEST_CHARGE"].ToString(); Label28.Text = ds1.Tables[0].Rows[23]["MEDICAL_TEST"].ToString(); CheckBox18.Attributes.Add("Value", ds1.Tables[0].Rows[23]["ID"].ToString()); Label40.Text = "Rs. " + ds1.Tables[0].Rows[23]["MEDICAL_TEST_CHARGE"].ToString(); Label29.Text = ds1.Tables[0].Rows[24]["MEDICAL_TEST"].ToString(); CheckBox19.Attributes.Add("Value", ds1.Tables[0].Rows[24]["ID"].ToString()); Label41.Text = "Rs. " + ds1.Tables[0].Rows[24]["MEDICAL_TEST_CHARGE"].ToString(); Label30.Text = ds1.Tables[0].Rows[25]["MEDICAL_TEST"].ToString(); CheckBox20.Attributes.Add("Value", ds1.Tables[0].Rows[25]["ID"].ToString()); Label42.Text = "Rs. " + ds1.Tables[0].Rows[25]["MEDICAL_TEST_CHARGE"].ToString(); Label31.Text = ds1.Tables[0].Rows[26]["MEDICAL_TEST"].ToString(); CheckBox21.Attributes.Add("Value", ds1.Tables[0].Rows[26]["ID"].ToString()); Label43.Text = "Rs. " + ds1.Tables[0].Rows[26]["MEDICAL_TEST_CHARGE"].ToString(); } }