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.
Issues regarding Browser Support and how your web page's behave and appear in different browsers, different versions of browsers is a problem in ASP.NET but then it's again, a problem anywhere where web developments taking place. In this video, I want to talk about Basic Browser Support Issues and how ASP.NET is designed to deal with those issues. These issues again will probably figure into some of the questions that you see on the exam although they won't be direct, you will have to understand how ASP.NET deals with browser issues to choose the correct answer. So let's start off and talk about some of the basics on ASP.NET and browsers. Now ASP.NET has a fairly sophisticated method of determining browser capabilities. This feature is called strangely enough right, Browser Capabilities. Notice if you just capitalize it, it becomes a feature. Right. Now the way this is working, is there an HTTP Browser Capabilities Object which we'll look at a little bit later on, but this represents the browser capability details. In other words, the properties and settings that can be populated in a browser's capabilities are basically housed in that HTTP Browser Capabilities Object. These are accessed using the Request.Browser property and so what's happening here is ASP.NET and your browser, or ASP.NET has this Request.Browser which is kind of digging into Browser Capabilities and then we can use that proactively as a developer to get and set some things. And now properties that can be then read from this Request.Browser Property to determine exactly what browser has just made a request to our web server, what version it is and then we can infer from that any kind of different pages we want to show it or different ways to render things, CSS tricks and that sort of thing. Now Browser Definition Files are something that are included with ASP.NET and these contain information and I guess should have the word known, these contains known information about particular browsers capabilities. Now a number of new Definition Files are included in ASP.NET 4 and I'll look at some of these. You have Blackberry.Browser File, you have the Chrome.Browser File and keep in mind each one of these has a number of settings, kind of key value type settings of different properties that these browsers exhibit. Firefox.Browser, iPhone.Browser, Opera.Browser, Safari.Browser. These things just go on and on and this is not an inclusive list but each one of these files they have the various properties. Now the Browser Capabilities Provider is an ASP.NET 4 feature that let's the developer use code to determine browser capabilities and there's a good reason for that, because when you first look at this idea and you say oh wait, there's Browser Definition Files, when Firefox comes out with a new browser, I'll just open up that Definition File, the .Browser File and I'll make a couple of changes. Well the only problem with that is these Browser Files are some fairly complex XML and updating them and changing them is somewhat complicated. Now the Browser Capabilities Providers make obtaining updated Browser Files much, much easier. So in reality, what you're going to do most of the time, is use these Browser Capabilities Providers and some of the Browser Objects that I've mentioned earlier in this video to basically programmatically look at a request that's coming in, determine what browser it is. If you can't determine what browser it is, then you can do some other functionalities to read whatever property you're looking for and then you can update your files that way. We'll talk about that in a separate video, but for now, for this video, I just wanted you to understand Browser Support is an issue in ASP.NET, it has always been an issue in ASP.NET and when we get to ASP.NET Version 364, it will still be an issue because browsers continue to evolve, they have more and more functionality, we have more and more browsers every year. You know, a few years ago, we kind of actually started to believe that all the browsers would merge into one, we'd have one common browser. We now have more browsers than we've ever had and they are in many ways more diverse than they ever been. And not only that but our screen sizes are now starting to change on us daily. So a lot of things to deal with here. We'll dig into some more of these later, but this gives you enough basics to understand what's going on here, how we're trying to deal with this problem and in some separate videos, we'll get a little more detailed with this.
| 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 |