Graceful Degradation AJAX

AJAX can improve site's appeal and give you chance to stretch your dollar a little further by serving more requests in same bandwidth. AJAX needs JavaScript and there are times when either user of your website has disabled JavaScript or have a device that doesn't support JavaScript. Although number of users with no JavaScript support are less but that doesn't mean we don't need their business.

Today, we will look at an example of Graceful Degradation of our web application which supports both AJAX and Non-AJAX usages.

Note: I am using ASP.NET MVC 3 but you can use any server side technology but it can be utilized with any server side technology with some minor changes. [More]

Tags: , , , ,

AJAX | jQuery | MVC

Custom Action Method for Export to Excel

Today we will look at how to build Export to Excel functionality by deriving new type from ActionResult class.

To get started, lets setup following:

An ASP.NET MVC project
New controller with name "ExcelController.cs" inside controller folder
ConnectionString to any database (in this one I am using Products table of Adventure works database) [More]

Tags: , , ,

ASP.NET | MVC

File upload and view using ASP.NET MVC2

Today we will see how to build file upload functionality in MVC2 and then display uploaded files in a HTML table. [More]

Tags: , , ,

ASP.NET | MVC

Custom Paging with ASPNET MVC2 and HTML Table

ASP.NET MVC provide many features to generate clean HTML that is search engine friendly and look less cluttered then Web forms. There is no data grid control present in the framework but it helps you build in every possible way to create one on your own with basic HTML table.

Today, we will see how to create Paging along with table footer to navigate through the pages. [More]

Tags: , , ,

ASP.NET | LINQ | MVC

Implementation of Repository Design Pattern with ASP.NET MVC 2

Repository pattern plays a significant role when it comes to create separation of concern between data access and business logic layer.

There are several benefits of using this design pattern: [More]

Tags: , , , , ,

ASP.NET | MVC | Design Patterns

Creating Model with Data Access Class – ASP.NET MVC2

Its often a discussion whether to choose ASP.NET MVC or Web form and which one is better, also there are times when I have seen people thinking that I know web form so well if I make a switch what's going to happen if I make a switch and will it worth for because I have spend years and years becoming ninja in web form technology and now when it feels that its almost there, here comes new technology to learn. Well let me tell you something that this has been one of the thing that was with me as well, but moment I started exploring features of MVC I realized that Microsoft team has done such an amazing work on putting this new technology together that all you have learned and spend years learning will not just go in vain. All good things about web forms are here in one form or the other. [More]

Tags: , ,

ASP.NET | MVC