Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

VFP logic inside Repeaters

$
0
0
VFP logic inside Repeaters
Web Connection 5.0
VFP logic inside Repeaters
02/11/2012
05:29:24 PM
3FI11HKLB Show this entire thread in new window
Gratar Image based on email address
From:
To:
All 
Attachments:
None
I've gotten very used to embedding VFP commands into framework pages since that feature was introduced. Fox example, to conditionally display a table column:

<% IF This.Page.lShowProxy %> <td style="width: 18%;"> <ww:wwWebLabel runat="server" ID="txtRegistrant" ControlSource="tRegs.RegName" ></ww:wwWebLabel> </td> <% ENDIF %>

I was going to use the above when refactoring an older page but then remembered it wouldn't work because it was inside a Repeater and VFP scripts are not supported in that context.

However, VFP expression evaluation is supported so I was able to accomplish the same goal by using:

<td style="width: 18%; <%= IIF(This.Page.lShowProxy,'','display:none;')%>">

Just thought I'd pass this along in case someone else runs into the same situation. (Or so I can look it up here next I need to use it...)

--stein


Viewing all articles
Browse latest Browse all 10393

Trending Articles