Click here to Skip to main content
15,879,490 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
I am working on a C# E-Commerce application.

I having difficulties deleting and adding a item to the cart. It gives me the error in the price column which is a decimal field.

The application only executes the delete/add to cart when I change this decimal value to a normal integer value without decimals

How can I change the Detail.cshtml file to counter this issue?
Please view the 2 images below.[^][^]

What I have tried:

The field allows integers only. However, I need to add decimal values as some products may be decimal values. Example: $120.99
Herman<T>.Instance 14-Nov-22 10:33am    
I am not clicking url's that say it is an image
CHill60 15-Nov-22 8:26am    
There is no need for those links - most members will just bypass your question because it involves going off-site. Post your code in your question not as an image and just tell us what the error message says

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900