How to add anchor tag conditionally in ItemTemplate of Repeater
<p>I have Showing the Image Slider on page. To Display I have used the Repeater. Now I have not used anchor tag to image for every image. So Anchor tag is conditionally.
My code is </p>

<pre><code> &lt;ItemTemplate&gt;           
        &lt;a  id="SliderLink"&gt;
             &lt;img id="SliderImage" runat="server" alt="" /&gt;
         &lt;/a&gt;
 &lt;/ItemTemplate&gt;
</code></pre>

<p>Now I always shows the image but every image not cover with a tag. How I achieved this.</p>
