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
  • How Business rule work with webapplication to display error message in asp.net c# ?

    rated by 0 users
    Answered (Not Verified) This post has 0 verified answers | 1 Reply | 1 Follower

    Not Ranked
    4 Posts
    jhoncsla posted on Thu, Jul 3 2014 2:52 AM

    Not able to display error/warn/Info messages to user(UI) with asp.net webapplication?

    How can i display Business rule required field error message to user ?

    Any Example with webapplication will help me?

    All Replies

    Top 10 Contributor
    4,106 Posts
    Answered (Not Verified) Andy replied on Thu, Jul 3 2014 10:27 AM
    Suggested by Andy

    It depends on if you're using WebForms or MVC.  With MVC, the .ValidationMessageFor extension method will pick up errors related to a property, and the ValidationSummary method can be used to show model level errors.  There's a similar method in WebForms, but its been a while so I don't remember. 

    Neither of these will show Info or Warning messages, I think there might be something in CslaContrib that solves that case though.  If not you'd have to devise your own method.

    Page 1 of 1 (2 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