insert is not working : **this code is not working    
 i m trying to insert the data**

   

   
                    int a = 1;
                
            DateTime cDate;
            cDate = DateTime.Today;
            string insertString = "insert into tbl_complaint(Date,User_id,department_name,Product_name,complaint_details,Status) values(@date,@uid,@dept,@product,@details,@status)";
            SqlCommand cmd = new SqlCommand(insertString, con);
            cmd.Parameters.AddWithValue("@date", cDate);
            cmd.Parameters.AddWithValue("@uid", a);
            cmd.Parameters.AddWithValue("@dept", ddlDept.SelectedValue);
            cmd.Parameters.AddWithValue("@product", txtPName.Text);
            cmd.Parameters.AddWithValue("@details", txtCDes.Text);
            cmd.Parameters.AddWithValue("@status", "Submited");
            cmd.CommandType = CommandType.Text;
    
            try
    
            {
                int check;
                con.Open();
    
          

 check= cmd.ExecuteNonQuery();
                con.Close();
              
    
              
    
            }