CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • PropertyStatus Silverlight showing multiple error messages

    rated by 0 users
    Not Answered This post has 0 verified answers | 0 Replies | 1 Follower

    Top 500 Contributor
    24 Posts
    Hannes Pretorius posted on Fri, Jul 8 2011 6:30 AM

    Hi

    I think I am missing something somewhere but can't seem to find it.

    I've got a PropertyStatus control next to a textbox. In my business rules section I define a required rule. Everything works fine. If the textbox is empty the error message display and when the user mouse over the errorprovider a popup display the error message. When the user type in some stuff and tab to the next field the error provider disappear as expected and when the user return to that field and clear all the words the error provider return but when you mouse over the error provider there is two of the same error messages.

    What is causing this?

     Below is how I add the Rule

    #region

     

     

    Business Rules

     

     

    protected override void AddBusinessRules()

    {

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    BusinessRules.AddRule(

     

     

    new Csla.Rules.CommonRules.Required

    (DescriptionProperty));

     

     

    }

     

    Page 1 of 1 (1 items) | RSS

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems