Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Validation messages #35


User avatar
0
rafael pol created

Hello, First of all, Thank you for this great framework, it saves a lot of developing effort!

Maybe a dumb question but, is there any example of how to show the json validationErrors collection messages to the users instead of the generic Pop up error message "Your request is not valid" ? also the json validationErrors collection has a "members" property on it, I suppose it must have the invalidated field property name in the Dto, So I can show the error messages associated with their corresponding field back in the UI, but it's always set to null, Am I missing something? BTW, I'm using angularJS for the UI.

Thanks in advance.


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Currently, there is no direct support for intecepting errors on the client side. You may do it using some hacks. See <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/229">https://github.com/aspnetboilerplate/as ... issues/229</a> It will be possible in a near future.