© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
35 replies
Sk

✅ Trying to make a shopping cart in ASP.Net MVC core problem.

Im trying to access "Cart.CartAmount" in my view, so when "Add to cart" is pressed it will increment "Cart.CartAmount" and that will be shown in the cart in the top right. This is my relevant code, any ideas as to why its not working would be very useful.
image.png
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

trying to make an add to cart application in asp.net mvc core
C#CC# / help
3y ago
ASP.NET Core MVC Structure
C#CC# / help
4w ago
✅ ASP.NET Core MVC error
C#CC# / help
3y ago