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

Razor not Rendering Tag Helper

$
0
0

Hello,

I'm attempting to use Tag Helpers to render a select menu.  However, when I run the program, it displays in the HTML:

<select asp-for="Country" asp-items="Microsoft.AspNetCore.Mvc.Rendering.SelectList">
                                            <option>- Select a Country -</option>
                                        </select>

I have TagHelpers installed in NuGet, and I have @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers in my _ViewImport file.

Any ideas would greatly be appreciated.


Thanks!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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