How is RedirectToRoute supposed to be used?
I have this in my Global.asax.cs:
I have this in my Global.asax.cs:
Part of my application maps resources stored in a number of locations onto web URLs like this:
I want to add optional parameters in my routing table.
For example I would like the users to browse a product catalog like this:
http://www.domain.com/browse/by-category/electronics/1,2,3 etc
I have a C# web forms ASP.NET 4.0 web application that uses Routing for URLs for some reason custom errors defined in the system.web section of my web.config is entirely ignored and it will fall back the IIS errors.
I have a website where I need to add a Favicon.ico. The site is written using ASP.NET 3.5 Web Forms with Routing. The issue is that the Favicon link always returns a page not found error. This is because the Routing does not know where the link for Favicon.ico should go to so it returns the Not Found page.
Now I’m trying to work with System.Web.Routing. All is just fine, but I can’t understand how to make form authentication work with url routing (return url, redirection, etc). Google says nothing. Help! 🙂
In a recent project, I built my own MVC framework in PHP. One of the things I implemented was a routing system. I used Apache’s mod_rewrite to send all requests to index.php, and then parsed the URI to extract information and route the request.
Say I want to remove any mapped routes for files with a certain file extension.
I have a simple ASP.NET 3.5 SP1 Web Forms app… I’ve added the System.Web.Routing DLL, and I’ve made a simple route that returns a standard ASP.NET Page as the “IHttpHandler”.
The reason I’m asking is because IIS protects certain ASP.NET folders, like Bin, App_Data, App_Code, etc. Even if the URL does not map to an actual file system folder IIS rejects a URL with a path segment equal to one of the mentioned names.