Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

How do I hide user control?

Vote:
 
I have an user control in my default framework-file. This is called in the ordinary way: This control should be exposed on all page types. However, when a certain condition is met on any page the control should not be displayed. How do I hide an entire control? Where do I add the logic - in the framework-code or in the control-code? Thanks in advance! Frank
#12568
Mar 30, 2006 12:53
Vote:
 
Depends on how well you want it to handle error and were you have the "certain condition". But one easy and straight forward way in EPi is like this. If PropertyName doesnt have any value false is returned, works with any property type in EPi. /HAXEN
#14522
Mar 30, 2006 13:40
Vote:
 
So simple... Excellent!
#14523
Mar 30, 2006 14:45
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.