We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You have
@Html.EditorFor(model => model.CustomerName, new { htmlAttributes = new { @class = "form-control", @autofocus = "autofocus" } }) @Html.ValidationMessageFor(model => model.CustomerId, "", new { @class = "text-danger" })
but it shoul be
@Html.EditorFor(model => model.CustomerName, new { htmlAttributes = new { @class = "form-control", @autofocus = "autofocus" } }) @Html.ValidationMessageFor(model => model.CustomerName, "", new { @class = "text-danger" })
change model => model.CustomerId to model => model.CustomerName in CustomerName field
Without this change you don't see error message when you leave empty filed: CustomerName
The text was updated successfully, but these errors were encountered:
No branches or pull requests
You have
but it shoul be
change
model => model.CustomerId
to
model => model.CustomerName
in CustomerName field
Without this change you don't see error message when you leave empty filed: CustomerName
The text was updated successfully, but these errors were encountered: