MVC - Raj Kaimal

Browse by Tags

All Tags » MVC (RSS)

CascadingDropDown jQuery Plugin for ASP.NET MVC

Cascading Drop Down is a jQuery plug-in that can be used by a select list to get automatic population using AJAX. The plug-in and a sample ASP.NET MVC project are attached at the bottom of this post.   Usage The code below shows two select lists...
Posted by rajbk | 18 comment(s)
Filed under: , , , ,

Running ASP.NET Webforms and ASP.NET MVC side by side

One of the nice things about ASP.NET MVC and its older brother ASP.NET WebForms is that they are both built on top of the ASP.NET runtime environment. The advantage of this is that, you can still run them side by side even though MVC and WebForms are...
Posted by rajbk | 14 comment(s)
Filed under: , , ,

ASP.NET MVC Paging/Sorting/Filtering using the MVCContrib Grid and Pager

This post walks you through creating a UI for paging, sorting and filtering a list of data items. It makes use of the excellent MVCContrib Grid and Pager Html UI helpers. A sample project is attached at the bottom. Our UI will eventually look like this...
Posted by rajbk | 11 comment(s)

Autopostback select lists in ASP.NET MVC using jQuery

This tiny snippet of code show you how to have your select lists autopostback its containing form when the selected value changes. When the DOM is fully loaded , we get all select nodes that have an attribute of “data-autopostback” with a value of “true...
Posted by rajbk | 4 comment(s)
Filed under: , ,

A basic T4 template for generating Model Metadata in ASP.NET MVC2

I have been learning about T4 templates recently by looking at the awesome ADO.NET POCO entity generator . By using the POCO entity generator template as a base, I created a T4 template which generates metadata classes for a given Entity Data Model. This...
Posted by rajbk | 7 comment(s)
Filed under: , , ,

ActionResult types in MVC2

In ASP.NET MVC, incoming browser requests gets mapped to a controller action method. The action method returns a type of ActionResult in response to the browser request. A basic example is shown below: public class HomeController : Controller { public...
Posted by rajbk | 12 comment(s)
Filed under: , ,

Localization in ASP.NET MVC 2 using ModelMetadata

This post uses an MVC 2 RTM application inside VS 2010 that is targeting the .NET Framework 4 . .NET 4 DataAnnotations comes with a new Display attribute that has several properties including specifying the value that is used for display in the UI and...
Posted by rajbk | 9 comment(s)
Filed under: , , ,

Setting up Visual Studio 2010 to step into Microsoft .NET Source Code

Using the Microsoft Symbol Server to obtain symbol debugging information is now much easier in VS 2010. Microsoft gives you access to their internet symbol server that contains symbol files for most of the .NET framework including the recently announced...
Posted by rajbk | 10 comment(s)
Filed under: , , , , ,

ASP.NET Asynchronous Pages and when to use them

There have been several articles posted about using asynchronous pages in ASP.NET but none of them go into detail as to when you should use them. I finally saw a great post by Thomas Marquardt that explains the process in depth. He addresses a key misconception...
Posted by rajbk | 1 comment(s)
Filed under: , , , ,

Code snippets for ASP.NET MVC2 in VS 2010

VS 2010 comes with ready made snippets which helps you save time while coding. You insert a snippet by typing the name of the code snippet and hitting the Tab key twice. You can also use the following method if you wish to see a listing of snippets available...
Posted by rajbk | 3 comment(s)
Filed under: , , ,
More Posts Next page »