Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Feature request: differentiate BrokenRules from Warnings
Message
De
22/04/2008 14:07:03
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Feature request: differentiate BrokenRules from Warnings
Divers
Thread ID:
01312451
Message ID:
01312451
Vues:
61
I need to show a different graphic for WebForm warnings than broken rules.

If this could be added to the framework, that would be nice.

I added
    /// <summary>
    /// myErrorMessageTypes enumeration
    /// (??? add to ImmWebBindingBase)
    /// </summary>
    public enum myErrorMessageTypes
    {
        BrokenRule = 0,
        Warning = 1
    }
My controls implement a new property
        /// <summary>
        /// Binding Error Type
        /// </summary>
        [Browsable(false)]
        public virtual myErrorMessageTypes ErrorMessageType
        {
            get { return this._errorMessageType; }
            set { this._errorMessageType = value; }
        }
        private bool _errorMessageType;
... and override StateChangeHandler() using an changed SetControlErrorMessage() to set the ErrorMessageType property.

An overriden Render() calling a changed GetErrorMessageHtml() shows out a yellow icon for warnings, and a red icon for broken rules.

Thanks!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform