With ASP MVC the routing works with the following code
routes.MapRoute("Default",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = UrlParameter.Optional });
It is easy to change the controllers and actions. Do I have access to such a controller at WebMatrix? Or do i need to catch each variable with UrlData[0].ToString(). Thanks in advance!
I assume you are talking about routing in ASP.NET Web Pages, in which case there are no controllers. The default routing set-up treats URLs as file paths. If no matching file (ignoring the file extension) can be found on the first attempt to match, the last portion of the URL is treated as UrlData, and an attempt to match a file is made with the remainder of the URL, and so on and so on. More can be found here: WebMatrix – URLs, UrlData and Routing for SEO