Pages

Tuesday, December 7, 2010

What's New in ASP.NET MVC 2

1. Areas  - Splitting up the large applications in to the smaller sections. Area is a package of controllers, views , helpers and routing entries etc


2. Model Metadata and Templated view helpers - providing human readable descriptions to the Model


3. More enhanced Validation , simply by providing "[Required]" declarative attribute to the 
fields


4. Automatic HTML encoding - Supported in .Net 4 Only


5. Asynchronous Controllers - More requests possible using IHttpAsyncHandler APIs


6. Http Method Overriding


7. Strongly Typed Input Helpers - Helps to create the Controls(TextBox, Checkboxes) directly from the Model/

Wednesday, October 27, 2010

MVC NameSpaces

ASP.NET MVC 2 comes with Following Namespaces - Please look in to the links for Classes ...
  1. System.Web.Mvc namespace --> The System.Web.Mvc namespace contains classes and interfaces that support the ASP.NET Model View Controller (MVC) framework for creating Web applications. This namespace includes classes that represent controllers, controller factories, action results, views, partial view, model binders, and much more.
  2. System.Web.Mvc.Ajax namespace --> The System.Web.Mvc.Ajax namespace contains classes that support Ajax scripts in an ASP.NET MVC application. The namespace includes support for Ajax scripts and for Ajax options.
  3. System.Web.Mvc.Async namespace -> The System.Web.Mvc.Async namespace contains classes that support asynchronous actions in an ASP.NET MVC application.
  4. System.Web.Mvc.Html namespace  --> The System.Web.Mvc.Html namespace contains classes that help render HTML controls in an MVC application. The namespace includes classes that support forms, input controls, links, partial views, validation, and more.

Tuesday, October 26, 2010

Setting Up MVC in your PC or Laptop

Hello again friends,

In this Post, i am gonna share information about "Setting up our PC for ASP.NET MVC 2",

1. If you would like to continue work with VS 2008, download and install MVC 2 for 2008 from here

2. If you would like to use VS 2010, Download VS web Developer 2010 from Microsoft website. ( if you own VS 2010 Licensed Version, that is very good, and you can use that one.)
3. Setup a SQL Server express from Microsoft website.

If you don't wanna do above all by hand, Microsoft has its own Web Installer which installs the above specified stuffs for you. Click here to Download  ASP.NET MVC 2.0 Web Installer.

Microsoft Rocks!!

Monday, October 25, 2010

ASP.NET MVC Introduction

The ASP.NET MVC Framework is a web application framework that implements the model-view-controller pattern. Based on ASP.NET, it allows software developers to build a Web application as a composition of three roles: Model, View and Controller

Model 
A model represents the state of a particular aspect of the application. Normally, Model represents the back-end/database tables. 

View
A view accepts necessary information from the controller and renders a user interface to display that.

Controllers
A Controller is responsible for handling the user requests/interactions through Views and also makes communications/interactions with the Models.
Features
  • Supports Test Driven Development - Unit Testing can be done easily.
  • Maintenance of the Software is very much easy compared to ASP.NET Web Forms, can be reusable/extensible.
  • Powerful and simple URLs using URL Routing
  • Very fast compared to ASP.NET Web Forms(View State).
  • Open Source by Microsoft, Source code can be downloaded from MVC CodePlex WebSite
Download Visual Web Developer Express 2010 from microsoft.com 

and Start Developing.....