By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

image in datalist please helppppppppppp

P: n/a
I have a datalist that show product and their image I us
<asp:Image ImageUrl='<%#Server.MapPath(@"\images\roomscenes\" +DataBinder.Eval(Container.DataItem, "PartNo")+"_ss.jpg") %>' runat="server" ID="Image1" /
but some times there is no image for one product and the page show me the asp image whitout any picture with a red
i what if there is no picture for one product the datalist dont show any thing and dont show asp:image whitout picture ,do you have any ide

Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
hi I can use the code for show the image I have imajin i have 30 products that 28 of them have image but 2 of them dosent have when I try to show the image in datalist for 2 product that dont have image datalist show imagebutton whithout any image with redx I want to do something that if the product dont have image the datalist dosent show image button
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.