We will be undergoing scheduled maintenance on May 20th, 2013 at 02:00 GMT.
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.
In this short video, I want to talk to you about Extensible Encoding and I put in a separate video because I wanted to make sure that it kind of registered with you because this is another thing that you will probably see mentioned on the exam in some form. Now in separate videos in different places in the course, I talked about HTML Encoding in a number of different forms and then I actually did a video called HTML Encoding Example that shows you a writing up some HTML Encoding and what the result is and kind of based on that or built on that foundation, let's talk about Extensible Encoding. Now in ASP.NET 4 you can now create your own custom encoding in a number of areas. The first one HTML Encoding, then you can do your own custom URL Encoding, I talked about that in a video called Extensible Encoding or something or Extensible Request Validation, something like that but anyway you can even do HTML Attribute Encoding and then you can create Custom Encoding for any outbound header encoding that's taking place. Now in all of these you can create a Custom Encoder by creating a class that inherits from the System.Web.Util.HTTPEncoder Class. Now System.Web.Util for Utility is a name space, HTTP Encoder is a type or a class. So I'm going to create my own class, I'm going to inherit from HTTP Encoder, you'll also hear that written as build a class that derives from. Now once you have that class created you then need to ASP.NET that, that class is out there and it can be used to extend the encoding. And you're going to use the Encoder Type Attribute of the HTTP Runtime Element in the Web.Config file. Make sure you remember this is in the Web.Config file. Once you've done that, than any custom encoding rules that you have coded into your own class to extend the encoding is going to be taken care of and the magic happens. Short video here, I just want you to know what this is and let you know that it can happen. You can extend the Encoding functionality in the four areas I talked about here and if you ever need to do that, this is how you would pull that of. Watch for this situation on the exam.
| 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 |