title: How to call c# method with no parameters and access returned data?
body: <p>So I have seen many examples such as these : 
  <a href="https://stackoverflow.com/a/8094230/2525507">https://stackoverflow.com/a/8094230/2525507</a></p>
  
  <pre><code>public class WebService : System.Web.Services.WebService {
     [WebMethod]
     public List&lt;string&gt; getList() {
        return new List&lt;string&gt; {"I", "Like", "Stack", "Overflow"};
     }
  }
  </code></pre>
  
  <p>Where you just it seems that through the success function you can view the returned data from the c# method in the form of an alert. But what if I want to access this "input+1" data outside of the function call, how would I proceed to do that? Also I am not sure how to call a method that has no parameters? </p>
  
  <pre><code>&lt;body&gt;
  
  &lt;select id="wordSelect"&gt;
  // Drop Down Menu to be populated 
  &lt;/select&gt;
  
  &lt;script&gt;
    $(function () {
      $.ajax({
        url: 'WebService.asmx/getList',
        data: '{**NO PARAMETERS?!**}', // should I also call JSON.stringify?
        type: 'POST',
        dataType: 'json',
        contentType: 'application/json',
        success: function (data, status) {
          alert(data);
          alert(typeof data);
        }
      });
    });
  
   $.each(data.i, function(index, item) { // will this access "I", "Like", ... etc?
       $(#wordSelect).append(
           $("&lt;option&gt;&lt;/option&gt;")
               .text(item)
       );
   };
  &lt;/script&gt;
  
  &lt;/body&gt;
  </code></pre>
  
  <p>In the end, I would like to populate a dropdown list using returned JSON data from a c# method that has been called through ajax, but I'm not sure how I can play with that retrieved JSON data that seems to be stuck in the function call? </p>
  
  <p>Sorry, I am new to Jquery/AJAX/etc... But Thank you so much!</p>