/// <summary>
        /// Handles the Click event of the btnInActiveSearch control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void btnInActiveSearch_Click(object sender, EventArgs e)
        {
            string clientName, position;
            DateTime? fromDate, toDate;
            if (txtClient.Text.Trim() == "")
            {
                clientName = null;
            }
            else
            {
                clientName = txtClient.Text.Trim();
            }

            if (txtRequirement.Text.Trim() == "")
            {
                position = null;
            }
            else
            {
                position = txtRequirement.Text.Trim();
            }
            if (txtFrom.Text.Trim() == "")
            {
                fromDate = null;
            }
            else
            {
                fromDate = Convert.ToDateTime(txtFrom.Text.Trim());
            }

            if (txtTo.Text.Trim() == "")
            {
                toDate = null;
            }
            else
            {
                toDate = Convert.ToDateTime(txtTo.Text.Trim());
            }

            DataSet dsInActiveRequirements = new DataSet();
            ViewClientRequirementDetailsREBAL viewClientRequirement = new ViewClientRequirementDetailsREBAL();
            dsInActiveRequirements = viewClientRequirement.ViewInActiveRequirementSearchBAL(recruiterId, clientName, position, fromDate, toDate);
            // Check if dataset is not null
            if (dsInActiveRequirements != null)
            {
                grdInActiveRequirements.DataSource = dsInActiveRequirements;
                grdInActiveRequirements.DataBind();
            }
        }
 /// <summary>
 /// Bind new requirements
 /// </summary>
 /// <param name="recruiterId">recruiterId</param>
 private void BindNewRequirements(long recruiterId)
 {
     try
     {
         DataSet dsNewRequirement = new DataSet();
         ViewClientRequirementDetailsREBAL viewClientRequirement = new ViewClientRequirementDetailsREBAL();
         dsNewRequirement = viewClientRequirement.ViewClientRequirementBAL(recruiterId);
         // Check if dataset is not null
         if (dsNewRequirement != null)
         {
             grdViewRequirements.DataSource = dsNewRequirement;
             grdViewRequirements.DataBind();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }