Using jQuery to bind ajax data
<p>I am getting data back from my C# WebMethod. I'm not sure how to bind the Key and Value from my WebMethod to my dropdown:</p>

<pre><code> &lt;select name="rest" id="rest" maxlength="50" style="width: 200px;"&gt;&lt;/select&gt;
</code></pre>

<p><strong>C#</strong></p>

<pre><code> [WebMethod]
public static Dictionary&lt;string, string&gt; LoadRestByCityState(string city, string state)
{
        DataSet ds = new DataSet();
        Database db = DatabaseFactory.CreateDatabase(ConfigManager.AppSettings["ConnectionString.Data"]);
        DbCommand dbCommand = db.GetStoredProcCommand("sel_RestByCityState_p");
        db.AddInParameter(dbCommand, "@pListCity", DbType.String, city);
        db.AddInParameter(dbCommand, "@pListState", DbType.String, state);
        ds = db.ExecuteDataSet(dbCommand);

        Dictionary&lt;string, string&gt; rest = new Dictionary&lt;string,string&gt;();

        foreach (DataRow row in ds.Tables[0].Rows)
        {
            rest.Add(row[0].ToString(), row[1].ToString());
        }
            return rest;

}
</code></pre>

<p><strong>jQuery</strong></p>

<pre><code>  function LoadRest() {
        __state = $("#State :selected").val();
        __state = '"' + __state + '"'
        __city = $("#City :selected").val();
        __city = '"' + __city + '"'
        $.ajax({
            type: "POST",
            url: "Default.aspx/LoadRestByCityState",
            data: '{"city":' + __city + ',"state":'+ __state +'}',
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            async: true,
            cache: false,
            success:
                function (data) {
                    $.each(data[0], function(key....not sure about this stuff
                    alert('parks loaded');
                },
            fail: function () {
                alert("Error.");
            }
        });
        return false;
    }     
</code></pre>

<p><strong>Data</strong>
This is being passed to WebMethod</p>

<pre><code>{
"state": "AL",
"city": "Auburn"
}
</code></pre>

<p>When debugging my WebMethod, I hover over 'rest' and it shows the Key and Value. </p>
