Jquery with ASP.NET - My page method not returning all the records
<p>I can't get to use the asp.net jquery thing using the page method to get what i want.
I have a simple table i'm getting data from but i only get one row returned  from the page method in my aspx page.Code below if anyone can help
Thanks in Advance</p>

<pre><code>[WebMethod]  
 public static SComms comms()  
 {  
     SComms c = new SComms();  
     string connect = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;  
     string query = "select * from dbo.Comms where dateadd(dd, datediff(dd, 0, created), 0) = dateadd(dd, datediff(dd, +10, getdate()), 0) order by 2";  

         using (SqlConnection conn = new SqlConnection(connect))  
         {  
             using (SqlCommand cmd = new SqlCommand(query, conn))  
             {  

                 conn.Open();  
                 SqlDataReader rdr = cmd.ExecuteReader();  
                 if (rdr.HasRows)  
                 {  
                     while (rdr.Read())  
                     {  
                         c.ListID = rdr["ListID"].ToString();  
                         c.ListID = rdr["Title"].ToString();  
                     }  
                 }  
             }  
         }  
     //}  
     return c;  
 }  
</code></pre>

<p>Javascript </p>

<pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function() {        
        $.ajax({  
             type: "POST",  
             contentType: "application/json; charset=utf-8",  
             data: "{}",  
             url:"page.aspx/Comms",  
             dataType: "json",  
             success: function(data) {  
                 if (data.hasOwnProperty("d"))  
                    DoSomething(data.d);  
                 else  
                    DoSomething(data);  

             }  
    });  

    function DoSomething(msg) {  
        //$("quote_wrap").append(msg);  
        var SComms = msg;  
        $('quote_wrap').append  

        //I can only get one record here  
        alert(SComms.Title);  
    }         
  });  

&lt;/script&gt;  
</code></pre>

<p>What i want as an output  is e.g :  </p>

<pre><code> &lt;blockquote&gt;  
     &lt;p&gt;Ut eu consectetur nisi. Praesent facilisis diam nec sapien gravida non mattis justo imperdiet. Vestibulum nisl urna, euismod sit amet congue at, bibendum non risus.&lt;/p&gt;  
     &lt;cite&gt;– Quote Author (Quote 1)&lt;/cite&gt;  
 &lt;/blockquote&gt;  
</code></pre>
