title: Why do I get "no overload method takes 0 arguments" error?
body: <p>I get "no overload method 'getStarDropdown' takes 0 arguments" error using the following code.</p>
  
  <p>How can i resolve this? As i am a newbie!</p>
  
  <p>Kindly help thanks :)</p>
  
  <p>First Class :</p>
  
  <pre><code>public DataTable getStarDropdown(int starID)
      {
          try
          {
              DataTable dtStar = null;
              CommonDAL obj = new CommonDAL();
              DataSet dsAll = obj.getStarEntity(starID);
  
              if (dsAll != null)
                  dtStar = dsAll.Tables[1];
              return dtStar;
          }
          catch (Exception ex)
          {
              string msg = ex.Message;
  
              ExceptionLogger.WriteToLog(hostWebUrl, "CommonDAL", "getAllDropDown()", ex.Message, ex.StackTrace, ExceptionLogger.LOGTYPE.ERROR.ToString());
              return null;
          }
  
      }
  </code></pre>
  
  <p>Second Class :</p>
  
  <pre><code>public static List&lt;Dictionary&lt;string, object&gt;&gt; GetStarData()
      {
          CommonBAL obj = new CommonBAL();
          DataTable dt = new DataTable();
          dt = obj.getStarDropdown();
  
          System.Web.Script.Serialization.JavaScriptSerializer serializer = new System.Web.Script.Serialization.JavaScriptSerializer();
          List&lt;Dictionary&lt;string, object&gt;&gt; rows = new List&lt;Dictionary&lt;string, object&gt;&gt;();
          Dictionary&lt;string, object&gt; row;
          foreach (DataRow dr in dt.Rows)
          {
              row = new Dictionary&lt;string, object&gt;();
              foreach (DataColumn col in dt.Columns)
              {
                  row.Add(col.ColumnName, dr[col]);
              }
              rows.Add(row);
          }
          return rows;
  
      }
  </code></pre>