protected void ddluniqueno_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (ddluniqueno.SelectedIndex != 0)
         {
             ddlElectricalServiceNo.Items.Clear();
             txtPreviousReading.Text = "";
             DataSet ds = Cls_electricalmeterreadingmaster.SelectHouseNoId(Convert.ToInt32(ddluniqueno.SelectedValue));
             if (ds.Tables[0].Rows.Count != 0)
             {
                 ddlElectricalServiceNo.DataSource     = ds.Tables[0];
                 ddlElectricalServiceNo.DataTextField  = "ElectricalServiceNo";
                 ddlElectricalServiceNo.DataValueField = "ElectricalServiceNo";
                 ddlElectricalServiceNo.DataBind();
                 ddlElectricalServiceNo.Items.Insert(0, "--Select One--");
             }
             else
             {
                 ddlElectricalServiceNo.Items.Clear();
                 ddlElectricalServiceNo.Items.Insert(0, "--Select One--");
             }
         }
     }
     catch (Exception ex)
     {
         lblError.Text = ex.Message;
     }
 }
 protected void ddlElectricalServiceNo_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (ddlElectricalServiceNo.SelectedIndex != 0)
         {
             txtPreviousReading.Text = "";
             int i = Cls_electricalmeterreadingmaster.SelectElectricalServiceNo(Convert.ToInt32(ddlElectricalServiceNo.SelectedValue));
             txtPreviousReading.Text = i.ToString();
         }
         else
         {
             txtPreviousReading.Text = "";
         }
     }
     catch (Exception ex)
     {
         lblError.Text = ex.Message;
     }
 }