Videos tagged with .NET Framework
Are you planning to migrate from classic ASP to Microsoft ASP.NET 2.0? This webcast series walks you through the important architectural design considerations to keep in mind when you plan your migration strategy. Date: 25 July 2006
How Do I: Create and Use Classes in JavaScript?
In this video Chris Pels shows how to create classes in JavaScript with functionality similar to other programming languages with object oriented capabilities. First a sample web site project is created with an external JavaScript file. A function() is created and the difference between using the function as a "function" and as a class constructor with the "new" keyword is discussed. Then publi...
How Do I: Create an Efficient and Standardized Approach for Implementing CSS Styles?
In this video Chris Pels shows how to organize and implement CSS styles that provide a standardized look and feel to a web site. In addition, the styles are organized to provide maximum flexibility and reusability. A set of styles is created that focuses on the visual appearance of the site. First, a sample web site is created with a CSS file for a sample page. The first groups of styles create...
How Do I: Work with Model Binders in an MVC Application?
In this video Chris Pels shows how to use model binders to bind form data to complex business objects in models in an MVC application. First, an MVC application is created along with a simple model for a Customer class along with a controller and view for editing the customer data. Then, the automatic model binding of MVC is demonstrated with the customer class. Next, the Bind attribute is disc...
How Do I: Use HttpVerbs Attributes in an MVC Application?
In this video Chris Pels shows how to use the HttpVerbs attributes to control access to MVC actions. First, a sample application is created with a default controller and view for editing the information. Next, a second Index action is added to the controller which has an HttpPost attribute which restricts it to being called only when an HTTP POST is used. As a follow-up, the AcceptVerbs() attri...
How Do I: Create a Custom HTML Helper for an MVC Application?
In this video Chris Pels shows how to create a custom HtmlHelper that is not available in the standard set in an MVC application. First, a sample MVC application is created with a demo controller and view to test the custom HtmlHelper. Next, a module is created with a public function that is an extension method which represents the implementation of the custom HtmlHelper. The custom helper is f...
How Do I: Customize Error Handling for the ASP.NET AJAX UpdatePanel
When an error occurs during the processing of a postback triggered by an ASP.NET AJAX UpdatePanel, the client-side PageRequestManager will show an alert (.NET 2.0 or 3.0) or just re-throw the exception (.NET 3.5 or later). In either case, the experience for the end user is less that optimal. In this video, Rob Windsor will demonstrate how to address this issue by customizing the handling of err...
How Do I: Use ASP.NET AJAX Client Templates
There are two key steps involved in building AJAX interactions, calling services asynchronously and updating the page with the resulting data. ASP.NET AJAX has always made the first part easy but it hasn’t provided much support for the second. To address this issue, Microsoft has added client-side templates and data binding and in this video, Rob Windsor will demonstrate how to use these new fe...
How Do I: Work with Data in ASP.NET MVC Partial Views?
In this video Chris Pels shows how to organize and pass data to partial views in an MVC application. A sample MVC application is created that contains domain models for several business entities as well as a view model that packages instances of the classes. A demo view is then created along with several partial views, all of which are strongly typed and make use of the view model class. The pa...
How Do I: Implement View Models to Manage Data for ASP.NET MVC Views?
In this video Chris Pels shows how to use the concept of a "View Model" for managing data for ASP.NET MVC views. First, a sample MVC project is created that uses a ViewDataDictionary to package and pass data from a controller to a view. Next, a class is created which represents a view model for a view in the sample MVC project. As part of this implementation, the advantages of the view model ap...