4

I was wondering if .NET core's asp-validation-for has a way to override the class that gets set on a span, or if there is a way to extend the tag helper to allow for that. Right now, when an error occurs client side, field-validation-error is the class that gets put on my span element. I was wondering if there is a way to override that within .NET Core or if I'll have to develop/modify that myself? This seems like a silly shortcoming, and I'd be surprised if there wasn't some other way of getting what I'm looking for.

The problem is I'm using bootstrap, and I want to add some bootstrap classes to my error element when a form doesn't pass validation.

ddeamaral
  • 1,303
  • 1
  • 23
  • 42
  • 4
    Possible duplicate of [Asp.Net MVC - Change error class name](http://stackoverflow.com/questions/2044489/asp-net-mvc-change-error-class-name) – Dekel Dec 18 '16 at 01:40

0 Answers0