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

Use asp-* attributes #101

Open
zHaytam opened this issue Sep 6, 2018 · 3 comments
Open

Use asp-* attributes #101

zHaytam opened this issue Sep 6, 2018 · 3 comments

Comments

@zHaytam
Copy link

zHaytam commented Sep 6, 2018

Hello,

Is it possible for example to generate a html element (e.g. span) and use for exaxmple asp-validation-for on it?

If no, are you aware of any way to manually call these kind of methods? asp-for, asp-action etc...

Thank you!

@jbogard
Copy link
Contributor

jbogard commented Sep 25, 2018 via email

@zHaytam
Copy link
Author

zHaytam commented Sep 26, 2018

What I want to do is write write as a string (or using HtmlTags) an input element for example and add asp-for attribute to it and I want the taghelper to execute but it doesn't because it doesn't get processed I end up with the attribute in the html like it's a normal attribute.

@jbogard
Copy link
Contributor

jbogard commented Oct 1, 2018

Ah right because tag helpers are weird....are you using the HtmlTags tag helpers too? I assumed those would layer (basically it's 2 tag helpers executing).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants