Author: itignition | Posted on: 5/17/2010 7:45:29 PM | Views : 393

Hi Microsoft Developers,


I'm in need of some serious help that has been plaging be for a long time.
I have built a custom ASP.NET route handler for handling my product navigation. And my URLS keep breaking.
There are so many variations of the manufacturers and thier respective models, that I have been forced to use a massive regular expressions to verify which page to route to and which members and thier properties to populate.
// basically any 5 or 6 digit numerical code, with the exception of a few, but that is irrelevant
rxallowableProductCodes = @"(\d{6})|(\d{4}.{1}\d{2})|(\d{5})"

manufacturersRegex= @"(Alluze)|(Bliter)"
modelRegex = @"(Graspic\sDS.3)"


Here is an example as in my global.asax file
routes.Add("ProductSelectorFilterRoutes3", new Ro ...

Go to the complete details ...