Changing values and attribute of collection asp.net
<p>I have this html tags</p>

<pre><code>&lt;ul id="ul1" runat=server&gt;
    &lt;li id="li1" runat=server&gt; &lt;a href="link" id="a1" runat=server &gt; &lt;img src="link id="img1" runat=server&gt;&lt;/img&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li id="li2" runat=server&gt; &lt;a href="link" id="a2" runat=server &gt; &lt;img src="link id="img2" runat=server&gt;&lt;/img&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li id="li2" runat=server&gt; &lt;a href="link" id="a2" runat=server &gt; &lt;img src="link id="img2" runat=server&gt;&lt;/img&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li id="li2" runat=server&gt; &lt;a href="link" id="a2" runat=server &gt; &lt;img src="link id="img2" runat=server&gt;&lt;/img&gt;&lt;/a&gt;&lt;/li&gt;
    .
    .
&lt;/ul&gt;
</code></pre>

<p>I am getting the attribute of each control in the "li"  from a xml file.
I want to loop on the the <code>&lt;li&gt;</code> collection and change the attribute of each control.
for example:the xml first child is return the src  of the first image,the src of the first <code>&lt;a&gt;</code>...
the xml seconed child is return the seconed image src ....</p>

<p>If I tried to do it with jquery, the page is first load the page defult attribute(those who didn't create on the fly)and just after the page is loaded, the "img src" and the 'a href" is changing.</p>

<p>so the only solution is to use server side that change the attribute values before the page is loaded to the client.</p>

<p>I know how to loop on each "li" in "ul" but don't know how to change the attribute of each control with asp.net</p>

<p>Thanks and Any efforts will be appreciated</p>
