Project Description
ASP.NET Routing Route Handlers for WebForms. Simple, but very flexible. Some of them include automatic language setting based on URL.
Release 1
Contains WebFormsRouteHandler. A simple ASP.NET Routing Handler that loads Web Forms files using "nice URLs".
Example:
// using Vitus.Web.Routing
Route route = new Route("/shop/{section}/{category}/{product}",
new WebFormsRouteHandler<Page>("~/{section}/categories.aspx"));
Release 2 (Planned)
Will contain WebFormsMultiLingualRouteHandler. This route handler operates with special URL parameters "locale", "langCode", "langCountry" and "langScript", which are used to determine the locale that the user requested using the URL. Whole program is very flexible, so it should fit with any developed project.
Example:
// using Vitus.Web.Routing
Route route1 = new Route("/{locale}/news",
new WebFormsMultiLingualRouteHandler<Page>("~/news.aspx"));
// OR
Route route2 = new Route("/{langCode}-{langCountry}/news",
new WebFormsMultiLingualRouteHandler<Page>("~/news.aspx"));