protected void btnadd_Click(object sender, EventArgs e)
 {
     try
     {
         if (txtAttendanceClientID.Text != null && txtAttendanceIP.Text != "")
         {
             if (btnadd.Text == "Integrated")
             {
                 bool   attendanceStatus = chkEnable.Checked ? true : false;
                 int    ObjectID         = Convert.ToInt32(ddlObject.SelectedValue);
                 int    attendanceClient = Convert.ToInt32(txtAttendanceClientID.Text);
                 string attendanceIP     = txtAttendanceIP.Text;
                 bool   response         = OBJ.PutAttendanceObject(ObjectID, attendanceClient, attendanceIP, attendanceStatus);
                 if (response == true)
                 {
                     Alert = AlertsClass.SuccessAdd; Gridbind(ObjectID);
                 }
                 txtAttendanceClientID.Text = string.Empty; txtAttendanceIP.Text = string.Empty;
             }
         }
         else
         {
             Alert = AlertsClass.ErrorRequired;
         }
         allowStaticMethods("ALerts('" + Alert + "'); staticMethod(); ");
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }