Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 8. Introducing ASP.NET MVC > Routing in ASP.NET MVC

8.3. Routing in ASP.NET MVC

So far, we’ve managed to build a controller class that incorporates the logic needed to display the homepage. In fact, its Index action is able to create a model instance and use some services to populate it; then it selects a view that translates all those bits into HTML.

We’re still missing the trigger that executes that action. A user starts a request by typing our blog’s URL into their browser, but there must be some additional logic that links that URL to the actual C# code you just finished writing. Enter URL routing.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial