473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

image in datalist please helppppppppppp

hi
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
1 1162
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: David W. Simmonds | last post by:
I have a DataList control that has an Image control in the ItemTemplate. I would like to resize the image that goes into that control. I have a series of jpg files that are full size, full...
0
by: Larry | last post by:
I have a dataset with filenames for the image buttons for my datalist. The image files as in a directory "GallerySubmissions". The datalist is part of a user control. What I can not get to work...
1
by: Jameel | last post by:
hello code Gurus, i want to display images in DataList, the image name are stored database, help me please , thanks in advance
1
by: savvy | last post by:
I want to create a Thumbnail Image from a given large Image and bind it to the Datalist with the datasource being Database. I followed this link given below Creating Thumbnail Images on the fly...
0
by: mharness | last post by:
Hello All, Does anyone know how to dynamically change the width and height properties of an image in a datalist in order to maintain the original aspect ratio? I've managed to do this with a...
4
by: phil2phil | last post by:
Hi, Right now I have a datalist, that renders the following html: <tr> <td class="daycss" align="Left" valign="Top" style="background-color:#EEEEEE;height:20px;"> <div...
2
by: GD | last post by:
I'm trying to bind (display) a SQL column to an <asp:image control. I was under the impression that this could be achieved my pointing the ImageURL to the databound column but it doesn't seem to...
3
by: Aussie Rules | last post by:
Hi, I have a datalist on my page that I bind a dataset to in my code.. SqlDataAdapter.SelectCommand = SqlCommand SqlDataAdapter.Fill(ds, "SearchResults") DataList1.DataSource = ds...
0
by: gh | last post by:
I am using VS 2008. There datalist hase a filed, STATUS, that is 0, 1, or 2. Depending on the value I want to set the Image source. I also have a field with a description that I would like to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.