c# 2D array – merging Values

I have a 2 Dimensional string array(5*2) like this: string[,] data= new string[5, 2] {{"F1","LINK1"}, {"F1","LINK2"}, {"F2","LINK3"}, {"F3","LINK4"}, {"F3","LINK5"}}; i want to group and merge the values into new array. Output : {"F1","LINK1,LINK2"}, {"F2","LINK3"}, {"F3","LINK4,LINK5"} The output array 3*2. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers … Read more

Passing array of strings to webmethod with variable number of arguments using jQuery AJAX

I’m trying to pass an array of string parameters to a C# ASP.NET web service using jQuery Ajax. Here is my sample web method. Note that the function accepts a variable number of parameters. I get a 500 Internal Server Error in Chrome’s javascript console when I run the jquery. I’m using jquery 1.6.2 and .NET3.5