Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Security Icons Not Displaying
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Security Icons Not Displaying
Miscellaneous
Thread ID:
01054570
Message ID:
01054570
Views:
42
Never mind. For some reason the DisplaySecuritySetupIcon property was false. I’m not sure how it got set to false, but that was the problem.


Hello Kevin,

I'm working on a web project with security enabled and it is working for controls placed on a web page. The problem I'm running into is that the MM controls that are placed within a User Control do not display their security icons.

I believe the problem is in the Render method of the MM Controls. You perform the following check before rending the security icon :

if (this.ControlID != Guid.Empty && this.Page is mmBusinessWebPage)

This check always returns false because this.Page is a mmUserControl, not mmBusinessWebPage. At least I think this would always return false if a control is place on a mmUserControl, maybe you couuld confirm this for me ?

The same if statement is used in the "mmUIHelper.RegisterSecurity" method.

Is this the reason the display icons are not showing when I log into Security Administration Mode, or am I missing something ?

If it is the problem, how do I fix it. I can inherit all the controls and fix each one's render method, but I don't see a way of overriding the mmUIHelper class to fix the RegisterSecurity method. There is not a method in the factory to create a mmUIHelper

Thanks, any help would be appreciated.

-Douglas Hammon
Douglas Designs.
Reply
Map
View

Click here to load this message in the networking platform