protected void btnSearch_Click(object sender, System.EventArgs e) { if (!string.IsNullOrEmpty(txtPatientName.Text.Trim())) { PatientDetailDTO PatientDetailDTO = new PatientDetailDTO(); PatientDetailDTO = objITransactionBusiness.GeTPatientInfo(txtPatientName.Text.Trim(), PHCConstant.PHCID); if (PatientDetailDTO != null) { ViewStatePatientID = PatientDetailDTO.PatientID; lblage.Text = Convert.ToString(PatientDetailDTO.Age); lblbloodgroup.Text = PatientDetailDTO.BloodGroup; lblVillage.Text = PatientDetailDTO.Place; lblECNumber.Text = PatientDetailDTO.ECNumber; BindPatientVisitHistory(PatientDetailDTO.PatientID, PatientDetailDTO.PHCID); } else { ResetPage(); } } else { ResetPage(); } }