Intro to MVC
Description: (You can make an ActionLink an image in MVC but replacing the output text to the image you would like to view. Notes: (Enter notes here) Inside your View, all you have to do is replace the text with the path to your image.Example:<%
Description: This tutorial will show you how to convert an ASP.Net Web application to use the Microsoft MVC Framework. Notes: 1.
Description: This code shows you how to create an Action Filter that you can assign to an action(method) within a controller Notes: Create a class that will inherit from "ActoinFilterAttribute" and perform some time of actionBelow is an example of a class the will display the amount of time a process took to the Output Window:
Description: This code will show you how to add an Html Helper method to your MVC project by using extensions. Under your MVC app, create a folder called "ViewHelpers"Within that folder, create a class called anything you want to put your extension methods into. (e.g. "MyExtensions")Once you have that class created, add extension methods that you would use within your Views....
Description: This code will demonstrate how Session objects can be persisted to the View in an MVC applicationsNotes: There are three objects that this code is working with. 1. ShoppingCart (this is a container for ShoppingCartItems) 2. ShoppingCartItem (this object has details about the item in the cart) 3. Product (used to get information to populate the ShoppingCartItem)
Description: These are a few examples of how to register routes Notes: Eamples: public
Description: ViewBag is new to C# 4.0. It is a dynamic feature that is like the ViewData in that it should only be used to persist temporary or small amounts of data. You should still try using proper View models. Notes: From a personal standpoint, you should try to avoid using ViewBag or ViewData in a true Enterprise level application and use a strongly typed object (ViewModel). This will also lead to better testing.