Use of the # within a Product Name

Oct 21, 2013 at 1:38 PM
using the # in a product name eg. "Chevron Pocke #1" breaks the cart when adding the item to the cart by causing a loop.
Coordinator
Oct 30, 2013 at 4:28 PM
In the web.config try changing:

<httpRuntime requestValidationMode="4.5" encoderType="System.Web.Security.AntiXss.AntiXssEncoder" maxRequestLength="1024000" targetFramework="4.5"/>

To:

<httpRuntime requestValidationMode="4.5" encoderType="System.Web.Security.AntiXss.AntiXssEncoder" relaxedUrlToFileSystemMapping="true" maxRequestLength="1024000" targetFramework="4.5"/>

In Product.aspx.cs change:

Response.Redirect("Default.aspx");

To:

Response.Redirect("~/Default.aspx");

Please let us know if that helps.

Thanks
Oct 31, 2013 at 4:43 PM
I applied the above changes as instructed

Now, upon clicking the Add to Cart button, the user is taken to the Main Page, and nothing is added to the cart.
Nov 22, 2013 at 7:07 PM
I suggest using the Online Ordering System web application that you can find in the microsoft visual studio ultimate edition. This template has the recommended asp.net code for a successful online shopping business. You can customise this application therefore you can add anything you like in the product's name and it will automatically update your products list.



Ali