9 May 2016 by Kornfeld Eliyahu Peter
Your code - over-simplified:[WebMethod]public static string jqufunc(int year){ foreach (var pr in allprogs) { return res + "*" + res2; }}You can see that this code will return anything only if allprogs has at least one member - and that's not promised...