473,837 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3250
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**********@g mail.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.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**********@g mail.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.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
15684
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 section of about 6 table rows that all need to be hidden if a certain condition is met. But I don't want to hide the whole table. And, I don't want to split up the table because the columns need to remain intact. I thought about using runat=server...
1
2400
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 contains mostly strings, but one of the Properties of the Direction Class is an image of type System.Web.UI.WebControls.Image. Obviously, if I try to render it in the repeater with the same technique used for a string:
1
1730
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 <%# DataBinder.Eval(Container.DataItem, "link") %> is not empty.
4
6563
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( DataBinder.Eval(Container,"DataItem.TheItem").ToString() ) %>'> doesn't seem to work. The runat="server" in the row seems to throw an error when within a repeater. So I'm looking for another solution? Thanks for any suggestions.
3
7738
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 am finding this sort of problem by far the most annoying part about working with ASP.NET controls. What I want is to know how to do three things: - conditionally show or hide an ImageField +column+ based on whether or not an the...
2
2485
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 Visual Studio .NET 2005's Design View always hides the <tr>'s regardless of whether the ASP:Panel's Visible property is set to True, False, or not set at all. Is there some way I can stop Visual Studio .NET 2005's Design View from hiding my <tr>'s...
1
1827
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 possible with no postback. And it would be great to have a button like "Show" which would change to "Hide". Well, but this is not so important.
7
9099
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 tried several different approaches for finding the placeholder: This: MyControl = this.FindControl("$form$tabs_repeater$PlaceHolder1"); Produces this error: Object reference not set to an instance of an object.
2
3090
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 it is empty or contains the same date as the startdate. Hope this makes senses. Thank you
0
9695
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10902
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10642
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10286
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9420
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7824
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7013
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5680
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3128
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.