Skip to content
New issue

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

RazorPages do not respect HtmlFieldPrefix #4938

Closed
NTaylorMullen opened this issue Nov 10, 2018 · 2 comments
Closed

RazorPages do not respect HtmlFieldPrefix #4938

NTaylorMullen opened this issue Nov 10, 2018 · 2 comments
Assignees
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates bug This issue describes a behavior which is not expected - a bug.

Comments

@NTaylorMullen
Copy link
Contributor

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:

@{
    ViewData.TemplateInfo.HtmlFieldPrefix = "Prefix";
}

<form>
    <input asp-for="SomeModelProperty" />
</form>

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.

@pranavkm
Copy link
Contributor

pranavkm commented Nov 10, 2018

@aspnet-hello aspnet-hello transferred this issue from aspnet/Mvc Dec 14, 2018
@aspnet-hello aspnet-hello assigned pranavkm and unassigned pranavkm Dec 14, 2018
@aspnet-hello aspnet-hello added this to the 3.0.0-preview2 milestone Dec 14, 2018
@aspnet-hello aspnet-hello added 1 - Ready area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates bug This issue describes a behavior which is not expected - a bug. labels Dec 14, 2018
@mkArtakMSFT
Copy link
Member

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.

@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates bug This issue describes a behavior which is not expected - a bug.
Projects
None yet
Development

No branches or pull requests

4 participants