title: C# Error invalid expression term ','
body: <p>The code :</p>
  
  <pre><code>  DataTable dt = Utility.GetProductByCatalogIds2("662, 663, 664, 665,666");
  
          List&lt;object&gt; listproduct1 = new List&lt;object&gt;();
          List&lt;object&gt; listproduct2 = new List&lt;object&gt;();
          List&lt;object&gt; listproduct3 = new List&lt;object&gt;();
          List&lt;object&gt; listproduct4 = new List&lt;object&gt;();
          List&lt;object&gt; listproduct5 = new List&lt;object&gt;();
          if (dt != null &amp;&amp; dt.Rows.Count &gt; 0)
          {
              for (int i = 0; i &lt; dt.Rows.Count; i++)
              {
                  if (dt.Rows[i]["catalogID"].ToString() == "662" || dt.Rows[i]["parentId"].ToString() == "662")
                  {
                      listproduct1.Add(new 
  
                      {
                          productID = dt.Rows[i]["productID"].ToString(),
                          ProductImg = dt.Rows[i]["ProductImg"].ToString(),
                          shortDesc = dt.Rows[i]["shortDesc"].ToString(),
                          ProductName = dt.Rows[i]["ProductName"].ToString(),
                          ProductPrice = dt.Rows[i]["ProductPrice"].ToString(),
                      });
  </code></pre>
  
  <p>` 
  and for the other 4 lists are the same, i only change CatalogID.I got below error:</p>
  
  <p><img src="https://i.stack.imgur.com/hJpWm.jpg" alt="enter image description here"></p>
  
  <p>and 85 same Errors: </p>
  
  <p><img src="https://i.stack.imgur.com/4dKEs.jpg" alt="enter image description here"></p>
  
  <p>This is probably stupid question but I don't know what to do :(Can you please tell me what I did wrong.</p>