ASP Repeater Evals mixed with HTML

Posted by Bry4n on Stack Overflow See other posts from Stack Overflow or by Bry4n
Published on 2010-04-27T23:58:56Z Indexed on 2010/04/28 0:03 UTC
Read the original article Hit count: 227

Filed under:
|
|
|

I want to include HTML and Eval within a Repeater:

<asp:Repeater ID="Rpt" runat="server" DataSourceID="DS">
         <HeaderTemplate><div id="gallery"></HeaderTemplate>
         <ItemTemplate>
            <a href='<%# Eval("Url") %>' class="show">  
             <img src='<%# Eval("Image") %>' alt='<%# Eval("Title") %>' title="" runat="server" id="sb1"
             rel='<%# Eval("Title") %>'/></a>
         </ItemTemplate>
         <FooterTemplate></FooterTemplate>
         </asp:Repeater>

I want the rel attribute Eval Title to have h3 tags wrapped around it. I've done this before, but I'm drawing a huge blank

© Stack Overflow or respective owner

Related posts about asp

Related posts about .NET