Your browser does not support JavaScript! Please enable script of your browser.
D
O
tNet-Tricks
Handy Dot Net Tricks Implementation !!
" Coding , A Rhythmic Literary Job "
Asp.Net MVC - Tutorial, Article, Archive, Pdf, Handy Tricks, Code Snippets, Training, Reference Manual, Model, View, Controller, Routing, Validation, ViewBag, Html Controls, Jquery Controls
Asp.Net MVC Tutorial - Getting Started with MVC3
Partial View in Asp.net MVC3 Razor
Posted By : Shailendra Chauhan, 16 Sep 2012
Updated On : 16 Sep 2012

A partial view is like as user control in Asp.Net Web forms that is used for code re-usability. Partial views helps us to reduce code duplication. Hence partial views are reusable views like as Header and Footer views.

 

When to use ViewModel in mvc3
Posted By : Shailendra Chauhan, 27 Jul 2012
Updated On : 27 Jul 2012

In asp.net mvc, a controller can pass single object to the corresponding view. This object may be a simple object or a complex object. ViewModel is a complex object that may contain multiple entities or objects from different data models or data source. Basically ViewModel is a class that specify data model used in the view. It is used to pass data from controller to view.

 

MVC Data Annotations for Model Validation
Posted By : Shailendra Chauhan, 27 Jul 2012
Updated On : 27 Jul 2012

Data validation is a key aspect for developing web application. In Asp.net MVC, we can easily apply validation to web application by using Data Annotation attribute classes to model class. Data Annotation attribute classes are present in System.ComponentModel.DataAnnotations namespace and are availlable to Asp.net projects like Asp.net web application & website, Asp.net MVC, Web forms etc.

 

Setting default submit button in MVC3 razor using jQuery
Posted By : Shailendra Chauhan, 19 Jul 2012
Updated On : 25 Jul 2012

In Asp.net MVC, sometimes we required to post the form on Enter key press. Asp.net MVC has no default button property like Asp.net. However, we can achieve this functionality by using jQuery in MVC.

 

ViewData vs ViewBag vs TempData objects in mvc3 razor
Posted By : Shailendra Chauhan, 19 Jul 2012
Updated On : 25 Jul 2012

In Asp.net MVC 3, we have three objects - ViewData, VieBag and TempData to pass data from controller to view and in next request. Now question is that when to use ViewData, VieBag and TempData. All these three objects have its own importance. In this article I am trying to expose the use of these three.

 

Introduction to MVC
Posted By : Shailendra Chauhan, 15 Jun 2011
Updated On : 14 Jul 2012

ASP.NET MVC is a new web application framework from Microsoft.MVC stands for Model-View-Controller, a pattern that’s becoming increasingly popular with web development frameworks. ASP.NET MVC is an alternative and a complement to Web Forms, which means you won’t be dealing with pages and controls, postbacks or view state, or complicated asp.net event life cycles.

 

Tips & Tricks Subscription :