Click here to Skip to main content
14,324,857 members
Rate this:
Please Sign up or sign in to vote.
See more:
i want to generate dynamic like this
<div id="xyz">
<ul>
<li><img id="1" src="" alt=""/></li>
<li><img id="2" src="" alt=""/></li>
<li><img id="3" src="" alt=""/></li>
<li><img id="4" src="" alt=""/></li>
<li><img id="5" src="" alt=""/></li>
</ul>
</div>

how can i do this please help me
thanks................
Posted
Updated 18-May-15 20:17pm
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

For webforms use a repeater

http://www.w3schools.com/ASPNET/aspnet_repeater.asp[^]

For mvc\razor store your images in the model and use a for loop in your view.
   
Comments
satyanand mishra 19-May-15 5:37am
   
actually sir..
i don,t want use repeater
F-ES Sitecore 19-May-15 5:39am
   
Why don't you want to use a repeater? You need to select the right tool for the job.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100