Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to generate dynamic like this
HTML
<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

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.
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900