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
Bug
In any RazorPage add:
@{ ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix"; } <form> <input asp-for="SomeModelProperty" /> </form>
The generated input tag helper does not respect the Prefix field prefix.
Prefix
This works: ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix";
ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix";
@pranavkm said he had an idea as to why.
The text was updated successfully, but these errors were encountered:
This is a variant of aspnet/Mvc#7675. We copy ViewData here - https://github.com/aspnet/Mvc/blob/master/src/Microsoft.AspNetCore.Mvc.RazorPages/Infrastructure/PageResultExecutor.cs#L89-L100, we might need to do more.
ViewData
Sorry, something went wrong.
Hi. Thanks for contacting us. We're closing this issue as there was not much community interest in this ask for quite a while now.
pranavkm
No branches or pull requests
Is this a Bug or Feature request?:
Bug
Steps to reproduce (preferably a link to a GitHub repo with a repro project):
In any RazorPage add:
Description of the problem:
The generated input tag helper does not respect the
Prefix
field prefix.This works:
ViewContext.ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix";
@pranavkm said he had an idea as to why.
The text was updated successfully, but these errors were encountered: