Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 27, 2012 01:56 AM by iamsaltman
Member
24 Points
43 Posts
Jan 27, 2012 01:56 AM|LINK
I want to add an image to each Category in the Category Browse section on the home page. Here is the code on the CategoryBrowse.ascx usercontrol. The image box is appearing but no image.
<asp:LinkButton ID="PreviewImageLinkButton" runat="server" CommandArgument='<%# Eval("Id") %>'> <%--<img src='<%# bind_image(Convert.ToBoolean(Eval("IsActive")))%>' alt="is active"/>--%> <asp:Image ID="PreviewImage" runat="server" ImageUrl='<%# Eval("Id", "~/PhotoDisplay.ashx?CategoryPreviewId={0}") %>' AlternateText="Preview Image" Style="border: 0;" /> </asp:LinkButton>
<asp:LinkButton ID="TopCategoryButton" runat="server" Text='<%# Eval("Name") %>' CommandArgument='<%# Eval("Id") %>' />
Any help would be greatly appreciated.
Thank you, Tim
iamsaltman
Member
24 Points
43 Posts
Category Image
Jan 27, 2012 01:56 AM|LINK
I want to add an image to each Category in the Category Browse section on the home page. Here is the code on the CategoryBrowse.ascx usercontrol. The image box is appearing but no image.
<asp:LinkButton ID="PreviewImageLinkButton" runat="server" CommandArgument='<%# Eval("Id") %>'>
<%--<img src='<%# bind_image(Convert.ToBoolean(Eval("IsActive")))%>' alt="is active"/>--%>
<asp:Image ID="PreviewImage" runat="server"
ImageUrl='<%# Eval("Id", "~/PhotoDisplay.ashx?CategoryPreviewId={0}") %>'
AlternateText="Preview Image" Style="border: 0;" />
</asp:LinkButton>
<asp:LinkButton ID="TopCategoryButton" runat="server" Text='<%# Eval("Name") %>'
CommandArgument='<%# Eval("Id") %>' />
Any help would be greatly appreciated.
Thank you,
Tim