ASP. NET routes are different from URL rewriting. URL rewriting processes incoming requests by actually changing the URL before sending the request to the webpage. For example, an application that uses URL rewritingProgramThe URL may be/Products/widgets/Change/Products. aspx? Id = 4. In addition, there is usually no corresponding API for URL rewriting to create a pattern-based URL. In URL rewriting, if the URL mode is changed, you must manually update all hyperlinks containing the original URL.
due to ASP.. Net routes can extract values from URLs, so the URL is not changed when processing incoming requests. if you must create a URL, pass the parameter value to the method that generates the URL for you. to change the URL mode, change the mode in a certain location. All links created in the application based on this mode will automatically use the new mode.
With this, we can achieve a lot of results on the web site.
For more information, see
Http://msdn.microsoft.com/zh-cn/library/dd329551.aspx