Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Tag Helpers Not Executing

$
0
0

I just moved some views into a new Core project and was converting my HtmlHelper tags to TagHelpers. They bind correctly but they are not doming any "work". E.g., they label asp-for doesn't pick up the DisplayName attributes and the validators don't fire. I'm guessing it has to do with a JavaScript thing sine the old page included some JavaScript using a @Script. I'm not sure where to start tarcking this down.

@model Card

@{
	ViewBag.Title = "Card Entry";
}<fieldset><legend>Pay Taxes By Credit Card</legend><br /><p>
		Please enter your credit card information here. You will not be charged yet.</p>

	Authorize = 4000100011112224<br /><form asp-route="Fund.Confirm"><hr /><div class="form-group"><label asp-for="CardNumber"></label><input asp-for="CardNumber" value="4000100011112224" /><br /><span asp-validation-for="CardNumber" /><br /><label asp-for="NameOnCard"></label><input asp-for="NameOnCard" value="Me" /><br /><span asp-validation-for="NameOnCard" /><br /><label asp-for="ExpireDate"></label><input asp-for="ExpireDate" value="0919" /><br /><span asp-validation-for="ExpireDate" /><br /><label asp-for="SecurityCode"></label><input asp-for="SecurityCode" value="321" /><br /><span asp-validation-for="SecurityCode" /><br /><input type="submit" value="Continue and Review" class="btn btn-default" /></div></form></fieldset>


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>