I had populated an ASP.net dropdown list with AJAX now I need to get the Id to store in into the database in a C# method, (I'm using LINQ)This is my webmethod\[quote\] [WebMethod()]\[code\] public static ArrayList GetLanguageList() { ArrayList lstArrLanguage = new ArrayList(); IQueryable<Common.Town> myList = new SupplierBL().GetTowns(); foreach(Common.Town t in myList) { string name = t.Name; string id = t.TownId.ToString(); lstArrLanguage.Add(new ListItem(name, id)); } return lstArrLanguage; }\[/code\]\[/quote\]My test.aspx code\[code\] <script language="javascript" type="text/javascript"> $(document).ready(function () { $.ajax({ type: "POST", url: "test.aspx/GetLanguageList", data: '', contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { $("#ddlLanguage").empty().append($("<option></option>").val("[-]").html("Please select")); $.each(msg.d, function () { $('#<%=ddlLanguage.ClientID%>').append($("<option></option>").val(this['Value']).html(this['Text'])); }); }, error: function () { alert("An error has occurred during processing your request."); } }); }); </script>\[/code\]