Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
Routing is a term that you're going to read a lot about and hear a lot about in ASP.NET 4 and if you've not dealt with this a whole lot, you didn't jump on it when it first showed up in some various ways especially in the ASP.NET MVC world a, a version or two ago then you've probably never even heard Routing. Well what exactly is Routing? In this video, going to be kind of a short one but I want to really plant the idea firmly in your brain about what Routing is because this is going to end up becoming a major, major part of development on the ASP.NET platform in Version 4 and especially going forward. The simplest way to describe Routing is that Routing is the process that controls the way our web server serves. In other words, it kind of determines the Pipeline that is taken through the system to get the end-user to whatever resource they requested. Now just like the statement here says, Routing controls the way a web server serves but Routing can also change the way our web server serves. Now there is an aspect of Routing that's being introduced, again, it kind of came to us through the MVC world which we'll talk about later in the course but this is going to revolutionize the way we deal with our web pages to some extent. Application, an application can now accept URLs that do not map to physical files. Now that's kind of freaky for us because always an application accepted URLs that had like ASPX, ASMX or something on the end of them and it went to that particular file named whatever the name was .ASPX and it was out there in a folder on the drive. With Routing, we can change the way the web server behaves and so now a user friendly URL can be mapped to a page. So it's almost like virtual drives or, or virtual directories that have a, a cool name but you can't actually find that directory on the hard disk, it's being mapped to a physical directory, same type thing here. When you have user friendly URLs that map to a particular location or a resource. So here's a good example, let's say that on the VTC.com website, we wanted to find a page that has courses that deal with development that are in the category development. Well instead of having to put in a URL called VTC.com products question mark and then passing a query string or you know, a parameter, a category in development, what if we could just have the end-user type www.vtc.com products slash development. How cool is that? Much, much easier. Oh another big thing here, this works really well with Search Engine Optimization, a term you're probably hearing more and more and more about because think about it, for one of the first times in history, no longer do you have to take your vacuum cleaner to every individual door and try to sell it like you see in all those old black and white movies and television shows, where somebody's, you know, a vacuum cleaner salesman or a brush salesman or whatever. Now we have the entire world almost coming to one location to find out where to get their vacuum cleaners and that's called Google or any of the other Search Engines. So if we can make sure that Google likes us and ranks us very high, we no longer have to carry our vacuum cleaners. People know how to find us to come our get vacuum cleaners from us. Now we can put our vacuum cleaners at a URL that they can very easily remember as oppose to these URLs that are almost impossible for the average user to even understand. Once they get to this and they see a question mark, their brain cuts off, they don't know what's going on at that point. You'll find them wandering around in the street and you have to help them back on. URLs can now be mapped both to web form pages which is really what we're talking about up here or if you're working in ASP.NET MVC which we will talk about later, we can actually map it to class methods, which is really wild. Because now we can just build a giant class in MVC, have different methods out there that do things and we can actually map our ULs to the methods within the class. That is really going to change and it does the way we architect and the way we maintain and manage and serve files via a web server. Okay. So understand for now, Routing is what determines how a user's request moves through the system and finds the information the user expected to see and then delivers it back to it.
| Course: | Designing and Developing ASP.NET 4 Web Apps (Exam 70-519) |
| Author: | Mark Long |
| SKU: | 34292 |
| ISBN: | 978-1-61866-029-9 |
| Release Date: | 2011-12-31 |
| Duration: | 8.5 hrs / 108 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |