SqlDataReader xreader = xCmd.ExecuteReader(); while (xreader.Read()) { return xreader[0].ToString(); } //ajax function $.ajax({ type: "POST", url: "Main.aspx/GetDataID", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (result) { GetDataP(result.d); } });
List<string> lstIDs = new List<string>(); SqlDataReader xreader = xCmd.ExecuteReader(); while (xreader.Read()) { lstIDs.Add(xreader[0].ToString()); } return lstIDs; </string></string>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)