I am passing the following array via jQuery ajax and JSON stringify...
"sessionsArray":[{"eventNum":"15200","title":"Integrity"},{"eventNum":"15210","title":"Estate and Probate"}]
to a c#/.NET web service. I need to loop over and extract the values but I'm having fuzzy brain today and cannot get the syntax correct. Help please?
[WebMethod(EnableSession = true)]
public string saveRegistration(Dictionary <string, string> sessionsArray)
List<string[]> eventsList = new List<string[]>();
foreach (var eventItem in sessionsArray)
{
eventsList.Add(new[] { eventItem.Key, eventItem.Value });
}
Thanks.