Click here to Skip to main content
14,361,180 members
Rate this:
Please Sign up or sign in to vote.
See more:
i want to generate dynamic like this
<div id="xyz">
<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>

how can i do this please help me
Updated 18-May-15 21:17pm

1 solution

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

Solution 1

For webforms use a repeater[^]

For mvc\razor store your images in the model and use a for loop in your view.
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