populate an array
-
in a javascript file containing is at below var iWebAlbumPhotos = [{"caption": "e9fc5e5f477945b488cbb350794906cf", "url": "e6f6d95f3ceb49c99f7ced49b758c487.jpg", "comment": "ff"},{"caption": "2f8f1552240f4f70976f252d4c5e71cc", "url": "90f03060782f492f978f54f482be864b.jpg", "comment": "ffff"}]; how can i populate this at runtime in aspx page?
-
in a javascript file containing is at below var iWebAlbumPhotos = [{"caption": "e9fc5e5f477945b488cbb350794906cf", "url": "e6f6d95f3ceb49c99f7ced49b758c487.jpg", "comment": "ff"},{"caption": "2f8f1552240f4f70976f252d4c5e71cc", "url": "90f03060782f492f978f54f482be864b.jpg", "comment": "ffff"}]; how can i populate this at runtime in aspx page?
Lookup System.Web.Script.Serialization.JavaScriptConverter. I've only used it with WebServices, but there might be a way to hook into it for your aspx page.
Mark's blog: developMENTALmadness.blogspot.com