private void fillText()
        {
            objEnt = new clsEntTADetails();
            if (iTADetailsID != null)
            {
                objEnt = objTADetails.readerForTADetails(int.Parse(iTADetailsID), txtTaNumber.Text);
            }
            else
            {
                objEnt = objTADetails.readerForTADetails(0, txtTaNumber.Text);
            }

            if (objEnt.TAName != null)
            {
                lblTAID.Text      = objEnt.TAID.ToString();
                txtTaName.Text    = objEnt.TAName;
                txtTaNumber.Text  = objEnt.TANumber;
                txtTAAmount.Text  = Math.Round(Convert.ToDecimal(objEnt.TAAmount), 2).ToString();
                txtStartDate.Text = objEnt.StartDate;
                txtEndDate.Text   = objEnt.EndDate;
                string projectID = objEnt.ProjectID.ToString();
                if (drpProjectNameNumber.Items.FindByValue(projectID) != null)
                {
                    drpProjectNameNumber.SelectedValue = projectID;
                }
                btnSubmit.Visible = false;
                btnUpdate.Visible = true;
                if (objEnt.TAActive == 1)
                {
                    ChkactiveTA.Text    = "OnGoing";
                    ChkactiveTA.Checked = true;
                }
                else
                {
                    ChkactiveTA.Text    = "Close";
                    ChkactiveTA.Checked = false;
                }
            }
        }
 protected void txtTaNumber_TextChanged(object sender, EventArgs e)
 {
     objTADetails = new TADetails();
     objEnt       = new clsEntTADetails();
     objEnt       = objTADetails.readerForTADetails(0, txtTaNumber.Text);
     if (objEnt.TAActive == 0)
     {
         ChkactiveTA.Checked = false;
     }
     else
     {
         ChkactiveTA.Checked = true;
     }
     fillText();
 }