Author: aspnetuser2010 | Posted on: 10/6/2010 11:14:45 AM | Views : 316

I use ASP.net Routing without MVC in my ASP.NET 4.0 ecommerce application. When the ROute Data has an "&" I get the following error message:
A potentially dangerous Request.Path value was detected from the client (&).
 
My URL looks like :http://localhost:57902/n/Batteries%20%26%20Electrical%20Supplies/x_3_y_30
 
The problem is becasue of the RouteValue "Batteries & elctrical Supplies". Please suggest, how I can encode this string. The code I have so far is:
parameters =
{.SEOText = dtCat(count)(
 
N ...

Go to the complete details ...