Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Security Icons Not Displaying
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Security Icons Not Displaying
Divers
Thread ID:
01054570
Message ID:
01054570
Vues:
43
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.
Répondre
Fil
Voir

Click here to load this message in the networking platform