I get a JSON array list of objects from database.
this is spitted to client side on page load of the current usercontrol
var json = new JavaScriptSerializer();
var jsonList = json.Serialize(mylList);
Page.ClientScript.RegisterStartupScript(this.GetType(), "HomeCarouselScript", string.Concat("<script type='text/javascript'> var carouselData = ", jsonList, ";</script>"));
the json structure is like this json has collection of objects called Active. each active object has property called Name, Lastname, Address
i want to display all the objects in to HTML div in this structure for each object present can we add following template to the main container. for each existing object in the j son list i am trying to add it the main div container.
<div id="maincontainer">
<div class="item">
Object.Name
<div class="subcategory">
<h4>
Object.Age
</h4>
<p>
Object.Address
</p>
</div>
</div>