Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

TagHelper [asp-validation-for] doesn't work on server side #4277

Closed
@John0King

Description

@John0King

This is the code i write:

<input asp-for="Title" class="form-control" />
<span asp-validation-for="Title" class="text-danger"  />

And this is the code that Generated:

<input name="Title" class="form-control input-validation-error" id="Title" type="text" value="sfdsfd" data-val="true" data-val-length-max="2" data-val-length="字段 Title 必须是最大长度为 2 的字符串。">
 <span class="text-danger field-validation-error" data-valmsg-replace="true" data-valmsg-for="Title">
</span>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions