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

Partial view at the end of chapter 7 #5

Open
AEBProg opened this issue Jan 14, 2023 · 4 comments
Open

Partial view at the end of chapter 7 #5

AEBProg opened this issue Jan 14, 2023 · 4 comments

Comments

@AEBProg
Copy link

AEBProg commented Jan 14, 2023

I followed the steps exactly, and triple checked my code, for some reason the partial view never renders on index.cshtml. When I run the application everything shows up except for partial view. Any help is greatly appreciated. Thanks
Mark

@Ahumbawapa
Copy link

Dear Mark i ran into the same issue two days ago.
I had a typo in my _ViewImports.cshtml so the taghelpers wasn't recognized.
I wrote
@addTagHelper *, Microsoft.AspNetCore.MVC.TagHelpers
but it must be
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

After this change the partial view was rendered

@linhfishCR7
Copy link

I also followed, but it does not work.
I applied "@await Component.InvokeAsync("CartSummary")", it worked well to me
If you have some other ways, please show
image

@drdexter33
Copy link

drdexter33 commented Sep 27, 2023

I followed the steps exactly, and triple checked my code, for some reason the partial view never renders on index.cshtml. When I run the application everything shows up except for partial view. Any help is greatly appreciated. Thanks Mark

Same problem..

Used this and it seemed to fix the problem:

@Html.Partial("~/Views/Shared/ProductSummary.cshtml", p)

Problem is, the compiler complains about it..

Thanks

@drdexter33
Copy link

drdexter33 commented Sep 27, 2023

This fixed my issue:

Changed:
@addTagHelper *, Microsoft.AspNetCore.MVC.TagHelpers
To:
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

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

4 participants