How Business rule work with webapplication to display error message in asp.net c# ?

How Business rule work with webapplication to display error message in asp.net c# ?

Old forum URL: forums.lhotka.net/forums/t/12687.aspx


jhoncsla posted on Thursday, July 03, 2014

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?

ajj3085 replied on Thursday, July 03, 2014

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.

Copyright (c) Marimer LLC