Page 1 of 1

Display Product Image in Advanced Search

Posted: Wed Dec 10, 2008 12:21 pm
by digitalkemical
I'm trying to add a column to the advanced search results that displays a product thumbnail that will link to the product page when clicked. I've tried using ConLib:ProductImage and I can't seem to get it to show up. Any help would be great. Thanks!

Re: Display Product Image in Advanced Search

Posted: Wed Dec 10, 2008 3:01 pm
by heinscott
Edit your conlib/advancedsearchpage.ascx.
Look for the <asp:GridView Id="ProductsGrid"....>
Immediately under the <Columns> tag, add:

Code: Select all

<asp:TemplateField HeaderText="Thumb Nail">
       <ItemTemplate>
              <asp:Image ID="ThumbImage" runat="server" ImageUrl='<%#Eval("ThumbnailUrl")%>' ></asp:Image>
       </ItemTemplate>
</asp:TemplateField>
...and that should do it.


Scott

Re: Display Product Image in Advanced Search

Posted: Wed Dec 10, 2008 7:06 pm
by draneb
Heinscott, that looks sooo much better. Thank you!