In the conventional website a url displayed as:
would typically mean a page sits in a subfolder below root named ‘Topics’ and have a page named default.htm (or similar).
I’m trying to get my head in gear with the MVC way of doing things and understand just enough of routing to know i should be thinking of URLs differently.
So if i have a db-driven page that i’d typically script in a physical page located at /Topics/index.aspx – how does this look in an MVC app?
mny thx
–steve…
It looks just like you want it to be.
Routing enables URL to be quite virtual. In asp.net mvc it will end at specified controller action method which will decide what to do further (i.e. – it can return specified view wherever it’s physical location is, it can return plain text, it can return something serialized in JSON/XML).
Here are some external links:
URL routing introduction by ScottGu
ASP.NET MVC tutorials by Stephan Walther