Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visibility of control within repeater
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Visibility of control within repeater
Divers
Thread ID:
01221894
Message ID:
01221894
Vues:
63
Hi all,

Well, I have a repeater working and with data table as retrieved from VFP. Now, what I need to do is conditionally show/hide some icons on a per-row basis based on a string value within the bound table.
<asp:imagebutton id="imgTest" visible=< %# CType(Container.DataItem, System.Data.DataRowView).Item("NameOfPDF")) % > ImageUrl="graphics/Testing.bmp" runat="server"></asp:imagebutton>
The value of the field "NameofPDF" will be blank if it doesn't apply to the row, yet the "VISIBLE" property of the image requires a true/false. How can I get this to work...


TIA
Répondre
Fil
Voir

Click here to load this message in the networking platform