9 posts

ASP.NET – Integrating File Assets

In our last video, we looked at the Model directive in Razor, and how it improves over the Inherits directive. Now, another common scenario is in which an application is being worked on by more than one person, or possible more than one team. Integration can be sped up by having view pages being dropped into a shared location, and the main developers then taking those pages and integrating them with the pre-existing Visual Studio project. In this video, I will show you how to take pre-existing views, integrate them into your ASP.NET application, and verify the results.

ASP.NET – Razor Model Directive

In the last video, we looked at integrating a model using the Inherits directive. A new directive, Model, has been introduced to make integrating strongly typed views as easy as a generic view. Through the use of the 'Add View' dialog, the model directive allows further integration with the Visual Studio designer than before. In this video, I will show you how to create a strongly typed view using the designer and model keyword, and add logic to that view.

ASP.NET – Razor Inherits Directive

In our previous video, we looked at how to pass parameters between an ASP.NET View and Layout page. It is now time to look at how to implement strongly-typed Models in an ASP.NET application. By default, the model is set to dynamic, meaning that it is not bound to any particular type of view. The inherits directive indicates which class the application will derive the view from, and can therefore ensure proper type checking. In this video, I will show you how to create a model using the Razor inherits directive.

ASP.NET – Passing Parameters Using Razor

In our previous videos, we have looked at how to create both Layout and View elements in an ASP.NET project using the Razor View engine. Once those elements are created, however, it is important to understand how to pass data between them, something which may not be immediately obvious. In this video, I will show you how to pass a simple string parameter using the PageData collection.

ASP.NET – Razor View Creation

In our previous video, we looked at how to create a master layout page with the Razor view engine. Once the layout is in place, we need to then create Views to attach to the controllers included with the MvcMusicStore project. By using the Visual Studio mechanism previously demonstrated for quickly hooking up a View to a Controller, we can quickly create and add code to rapidly create Views. In this video, I will show you how to create a View using the Razor view engine.

ASP.NET – Razor Layout Creation

This video is a continuation in our series on the ASP.NET Razor view engine. Creating a master layout page is especially important in ASP.NET development on larger products. Customizing each individual page with layout options is time consuming, and not the most efficient way to use developer resources.

ASP.NET – Razor Syntax

We now take the next step and look at more detailed syntax and markup situations which demonstrate the great flexibility and fluidity of the Razor view engine in that we can seamlessly merge HTML and C#. In this video, I will go over deeper Razor syntax in preparation for completing a Microsoft online lab.

ASP.NET – Page Life Cycle

ASP.NET is a very powerful and multi-faceted platform, which has empowered developers to create rich, interactive web applications which were not possible with classic ASP. The tradeoff, however, is that a developer must be aware of far more details in terms of developing an application than before. One of the most important is the ASP.NET page life cycle. A developer can cut down on debugging time, and greatly increase overall productivity in knowing the details of the life cycle before problems arise within the application. In this video, I will take you through a brief overview of the page life cycle.

ASP.NET – Introduction

Active Server Pages, or 'Classic' ASP was first introduced as part of the Windows NT Server 4.0 Option Pack, and was Microsoft's first attempt at a server-side scripting engine. ASP evolved as technology did, and was replaced with ASP.NET, integrating the same functionality with the dotNET framework and making the jump from pure 'scripting' code to compiled code. In this video, I will run through a classic ASP example and then show you how to create a ASP.NET web application within Visual Studio.