Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visibility of control within repeater
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Visibility of control within repeater
Miscellaneous
Thread ID:
01221894
Message ID:
01221894
Views:
64
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
Reply
Map
View

Click here to load this message in the networking platform