Click here to Skip to main content
15,568,244 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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 links for the 2 images below:

What I have tried:

I have tried editing validation in the Detail.cshtml. I have also changed the Price field in the Detail.cshtml to editable to test whether the normal number can be used.
Richard MacCutchan 12-Nov-22 8:42am    
Please use the Improve question link above, and add complete details of what is not working, including the failing code.

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