ASP.NET Routing - load routes from database?

Posted by ropstah on Stack Overflow See other posts from Stack Overflow or by ropstah
Published on 2010-03-12T14:41:29Z Indexed on 2010/03/12 14:47 UTC
Read the original article Hit count: 610

Filed under:
|
|

Is it possible to load routes from the database with ASP.NET ?

For each r as SomeRouteObject in RouteDataTable
  routes.MapRoute( _
        r.Name, _
        r.RouteUri, _
        r.RouteValues, _  //??
        r.Constraints _   //??
    )
Next

How should I store the routevalues / constraints? I understand that there are several 'default' routevalues like .Controller and .Action, however I also need entirely custom ones like .Id or .Page...

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about routing