indradeo says:
SqlCommand cmd =
new
SqlCommand(
"SELECT COUNT (STATUS_ID) FROM comp_box where CLOSING_DATE='GETDATE()'"
, con);
Replace with below code. Remove single quote from GetData function.
SqlCommand cmd = new SqlCommand("SELECT COUNT (STATUS_ID) FROM comp_box where CLOSING_DATE=GETDATE()", con);