Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > IfEmpty for String View modes: 
User avatar
Certified Developer 12
Certified Developer 12
chetan2309-gmail - 9/19/2013 10:48:46 AM
   
IfEmpty for String
Hi,

I am trying to use IfEmpty in my transformation to hide/show some field on the basis of of Some object. Its of type Long text.

<div style="display:<%#IfEmpty(Eval("key"), "none", "block") %>">
</div>

I used same syntx for video object type, that worked, but this didn't

Regards,
Chetan

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 9/19/2013 11:25:01 AM
   
RE:IfEmpty for String
Since it is a Long text field, there very well could be a & n b s p ; or a < b r / > tag in there. I'd suggest looking and seeing what the values are in directly in your database table and program around what you find.