I have following code to show multiple marker on gmap
I would encode the C# into Json using Json.Net or the C# Json encoder. Then write it into the hidden field. Then decode it on the JavaScript side using Json2