Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Feature request: differentiate BrokenRules from Warnings
Message
From
22/04/2008 14:07:03
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Feature request: differentiate BrokenRules from Warnings
Miscellaneous
Thread ID:
01312451
Message ID:
01312451
Views:
60
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!
Next
Reply
Map
View

Click here to load this message in the networking platform