protected void btnClearLog_Click(object sender, EventArgs e) { string port = Session["PortForOp"].ToString(); string IP = Session["IPForOp"].ToString(); string Deviceid = Session["DeviceIdForOp"].ToString(); if (objDeviceOp.ClearLog(Session["IPforOp"].ToString(), Convert.ToInt32(Session["PortForOp"]))) { DisplayMessage("All Attendance Logs Have Been Cleared From Terminal"); } else { DisplayMessage("Operation Failed"); } }