-->

27/08/2011

Features of MVC 3.0

# Extensible Scaffolding with MvcScaffold integration
     The new Scaffolding system makes it easier to pick up and start using productively if you’re entirely new to the framework, and to automate common development tasks if you’re experienced and already know what you’re doing.
     This gave a provision of using and even modifying the scaffold template as per your requirements. This topic is being discussed in detail in my other posts.

# HTML 5 Project Templates
     The new project template supports HTML5 template, which have far better performance and compatibility advantages compared with earlier versions of rendering formats. The advantages of HTML5 were discussed separately in my next post.

13/08/2011

Using Scaffold Package to generate your MVC project.

This is a basic topic discussing about how existing scaffold template works while creating a new MVC Views in Razor.

When you try to create a View, you will get a window giving you all the options supported by Scaffolding. Like one showed in left.

All the options below View Engine drop-down will be enabled after you check "Create a strongly-typed View", where you have to select a Model. Thus showing Scaffolding is Model Dependant.

Once you select a model, Scaffold template drop down will be enabled, giving you options
1. Empty - Creates a Empty Controller.
2. CURD - Creates a model supporting all the CURD operations.

03/08/2011

MVC Remote Validation


ASP.NET MVC 3 supports the new RemoteAttribute class that enables you to take advantage of the jQuery Validation plug-in's remote validator support. This enables the client-side validation library to automatically call a custom method that you define on the server in order to perform validation logic that can only be done server-side.

Step1: The appSettings element contains the following keys to enable client validation and enable unobtrusive JavaScript validation.







Step2: Define the remote attribute to the prop in model









02/08/2011

MVC 3.0 Scaffolding Basics

MvcScaffolding : The term “Scaffolding” is used by many software technologies to mean “quickly generating a basic outline of your software that you can then edit and customize”. It saves you from the trauma of looking at a blank page and having no idea where to start!
    The new Scaffolding system makes it easier to pick up and start using productively if you’re entirely new to the framework, and to automate common development tasks if you’re experienced and already know what you’re doing.
    This is supported by new NuGet scaffolding package called MvcScaffolding. If you installed MVC 3 , you can find "NuGet" as one of your programs in Control panel. 







If your work involves repeatedly creating similar classes or files of some sort, because you can create custom scaffolders that output test fixtures, deployment scripts, or whatever else you need. Everyone on your team can use your custom scaffolders, too.
    We will see how to automate the desired code snippets using Scaffold in next posts. 

Is it helpful for you? Kindly let me know your comments / Questions.