21
Answers

image tag URL dynamically

Ask a question
Chinni

Chinni

11y
1.8k
1
Hi,

i develop a images gallery application for that i use a img tag and anchor tag i need get a anchor tag and image tag URL are dynamically can you help me 

<asp:DataList ID="usergalleryDataList" RepeatColumns="8" runat="server">
                <ItemTemplate>
                    <a href='<%#Session["dir"]%>' rel="prettyPhoto[pp_gal]" id="anchor">
                        <img src='<%#Session["dir"]%>' width="60" height="60" alt='<%# Eval("Name") %>' />
                    </a>
                </ItemTemplate>
            </asp:DataList>

Thanks,
Ajith.

Answers (21)