473,396 Members | 2,061 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.

Hide empty image placeholder in repeater control.

BB
Hi,
I am using repeater control.in my aspx page. one of the column of
control displays images. Filenames of images are stored in table.
Now when I run it and if display Image is blank. I see place holder and
red cross in it in Internet Explorer. But it works fine in FireFox. Is there
any way to fix this so that in both browers I can see same ie hide
placeholder and red cross? I have tried to use alternatetext property for
image control.

Thank you

Jul 7 '06 #1
3 3222
by "if display image is blank", do you mean the file is not found?

i would either not output the img tag if there is no image, or have
some sort of default image (1x1 white gif or something) that is
displayed if there is no image
BB wrote:
Hi,
I am using repeater control.in my aspx page. one of the column of
control displays images. Filenames of images are stored in table.
Now when I run it and if display Image is blank. I see place holder and
red cross in it in Internet Explorer. But it works fine in FireFox. Is there
any way to fix this so that in both browers I can see same ie hide
placeholder and red cross? I have tried to use alternatetext property for
image control.

Thank you
Jul 7 '06 #2
BB
Any suggestion?
<ne**********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
by "if display image is blank", do you mean the file is not found?

i would either not output the img tag if there is no image, or have
some sort of default image (1x1 white gif or something) that is
displayed if there is no image
BB wrote:
>Hi,
I am using repeater control.in my aspx page. one of the column of
control displays images. Filenames of images are stored in table.
Now when I run it and if display Image is blank. I see place holder
and
red cross in it in Internet Explorer. But it works fine in FireFox. Is
there
any way to fix this so that in both browers I can see same ie hide
placeholder and red cross? I have tried to use alternatetext property for
image control.

Thank you

Jul 10 '06 #3
i'm pretty sure what i wrote was a suggestion :)
BB wrote:
Any suggestion?
<ne**********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
by "if display image is blank", do you mean the file is not found?

i would either not output the img tag if there is no image, or have
some sort of default image (1x1 white gif or something) that is
displayed if there is no image
BB wrote:
Hi,
I am using repeater control.in my aspx page. one of the column of
control displays images. Filenames of images are stored in table.
Now when I run it and if display Image is blank. I see place holder
and
red cross in it in Internet Explorer. But it works fine in FireFox. Is
there
any way to fix this so that in both browers I can see same ie hide
placeholder and red cross? I have tried to use alternatetext property for
image control.

Thank you
Jul 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Jerad Rose | last post by:
I searched for a while trying to find the answer to this, but to no avail. I am trying to find the best way (or any way) to dynamically show and hide groups of TR's. For example, I have a...
1
by: Matthew Law | last post by:
Hi, I have a repeater in my vb.net page which needs to render an image control (it's a mappoint linedrive map image). The repeater itself is bound to an array of object 'Directions' which ...
1
by: Shapper | last post by:
Hello, I have this code line inside an ASP.Net Repeater: <a href='<%# DataBinder.Eval(Container.DataItem, "link") %>'><%= readMore %></a> What I need to do is: 1. Show readMore value if <%#...
4
by: Utter Newbie | last post by:
Anyone know how to hide a table row in a repeater based on data returned from a data row? I tried doing this: <tr id="melon" runat="server" visible='<%# SetBoxVisibility(...
3
by: | last post by:
I'm using the DataList and GridView controls, and I am trying to wrap my head around the problem of conditionally showing or hiding cells/cell content based on the presence or absence of DB data. I...
2
by: Nathan Sokalski | last post by:
I have an HTML table in which I am using ASP:Panel controls to group together <tr>'s so that I can more easily show/hide them (by setting the ASP:Panel's Visible property). This works fine, but...
1
by: shapper | last post by:
Hello, I created an Asp:Repeater where I have an Asp:Panel and an Asp:Label. In each record of the repeater I want to have a small button which hides or shows the panel in that record. If...
7
by: Brad Baker | last post by:
I am trying to programmatically set a placeholder control in csharp which is nested inside a repeater control between <ItemTemplateand </ItemTemplate> tags, however I am running into problems. I've...
2
by: Boney | last post by:
Hi I have a repeater control which has a series of dataBinder items. There are two that show a start date and an end date of an event. Can someone tell me if it is possible to hide the end date if...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.