You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I had a question from page 266. It says ..."a user may request a page like this http://www.domain.com/Cars/Volvo/850/T5". I was confused as to how the browser knows which page to request since there is no actual page listed in this URL.
It depends.... One solution is to put a Default.aspx or other default document in the folder which then gets served. However, it's more common these days to do wild car mapping and run each request through .NET. That way the .NET run time can look at the request and determine how to handle it, which could be different for the technology (e.g. MVC could do it differently from Web Forms)
So, in all cases, the browser just submits the full URL and the sevrer (IIS) then determines what file to execute.
Actual Url is not "http://www.domain.com/Cars/Volvo/850/T5" but "it is displayed to user". you can use some techniques to do this. in asp.net MVC there is Routing tool, and in previous versions (Professional way) you can write your own HttpHandler and HttpModule that does it.