asp.net mvc routing - MVC database views and Url problems -


i have question hope know answer to. of views stored in database , don't follow mvc routes, allow full urls like:

localhost:3892/categories/category/asset?categoryid=3&id=119

and works fine, capture , handle on custom mvchandler class. problem is, have url this:

localhost:3892/categories/category/asset/edit?categoryid=3&id=119

this has element (edit) nothing else has changed doesn't hit custom mvchandler , know if knows why?

i solved adding catchall route looked this:

    // catchall route     routes.maproute(         "catchall", // route name         "{*url}"     ).routehandler = new cmsroutehandler(); 

that allows url long require


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -