Trying to return this list as an array so I can then grab it on the client side via JS and iterate through its values.
So one of my .ashx methods returns a list like this in the end of the method:
equipmentTypes is a generic list of strings
_httpContext.Response.ContentType = "text";
_httpContext.Response.Write(equipmentTypes.ToArray());
When i receive it on the client, I get the literal text "System.String[]". So what content type should I return? Obviously this is not correct.
Then I assume I can eval this into an array (object) on the js side.