ASP.Net Routing

-> ASP.Net routing enables you to use URLs that do not have to map to specific file in a website. Because the URL does not have to map to a file, you can use URLs that are descriptive of the user’s action and therefor more easily understood by the users.

-> In an ASP.NET application that does not use routing, an incoming request for a URL typically maps to a physical file that handles the request, such as an .aspx file. For example, a request for http://server/application/Products.aspx?id=4 maps to a file that is named Products.aspx that contains code and markup for rendering a response to the browser. The Web page uses the query string value of id=4 to determine what type of content to display.

-> In ASP.NET routing, you can define URL patterns that map to request handler files, but do not necessarily include names of those files in the URL. In addition you can include placeholders in a URL pattern so that variable data can be passed to the request handler without requiring a query string.

Leave a Reply

Your email address will not be published. Required fields are marked *