However these SPA templates are rather opinionated on the usage of the underlying frameworks and may not be the best starting point if we are trying to understand the framework under the hood. So today, we will look at AngularJS in a plain vanilla ASP.NET MVC app. We’ll start with an empty project and go ground up.
June 17, 2013
Hello AngularJS – Building a Tweet Reader
However these SPA templates are rather opinionated on the usage of the underlying frameworks and may not be the best starting point if we are trying to understand the framework under the hood. So today, we will look at AngularJS in a plain vanilla ASP.NET MVC app. We’ll start with an empty project and go ground up.
May 31, 2013
Customizing Routes in ASP.NET MVC – Custom RouteBase implementations
A quick search on the interwebs reveals the fact that people have very specific reasons from MultiTenancy to Custom paths not possible with the out of the box routing mechanisms.
Today we’ll pick an easy and superfluous one to demonstrate how to do a custom RouteBase implementation. We will see how we can re-direct non-standard URLs like html/asp and aspx files to a cleaner ‘Friendly Url’ format.
The Requirement
Handle extensions like html/pdf and redirect to Friendly URLs that ‘look like’ MVC generated URLs.
May 30, 2013
Async Await and ASP.NET MVC
Benefits of Asynchronous Model
As we know, ASP.NET has a max number of threads that it can pick up from its thread pool. When all the threads are busy, a new request is queued and has to wait till a thread is available to service the request. Thus in ASP.NET, one surefire way to gain better scale is to ensure that your requests don’t wait on threads unnecessarily. If you are thinking sure enough I’ll fire off a background thread and be done with it, you are wrong, don’t do it. Background thread is still a ‘thread’ and you are not gaining anything; uncontrolled background thread creation will only exhaust your thread pool faster. Key to ASP.NET scaling is letting go of a thread as-soon-as-possible.May 29, 2013
Creating Editable HTML Table for CRUD operations using Knockout Framework and WEB API
The requirement was to display all records in an HTML table, and allow users to add a new row as well as Edit and Delete records. In essence, functionality similar to like what we used to do earlier in ASP.NET GridView, but it had to be done in an ASP.NET MVC application preferably without un-necessary postbacks.
In this sample today, we’ll look at how we can implement this behavior in an MVC 4 application.
May 28, 2013
Friendly URLs in ASP.NET Web Forms
This was thanks to the Routing feature implemented in ASP.NET. Note the Routing feature is built outside MVC, it’s a part of core ASP.NET and as a result easily available for WebForms as well.
Leveraging the routing framework, Microsoft recently released the FriendlyUrls package via Nuget that helps achieve FriendlyUrls in ASP.NET WebForms applications without too much of manual Route Table setup. If you have Visual Studio 2012 and upgraded to the latest Web Update 2012.2, then you are in luck and any new Web Forms project you create will pull in the required packages and you have FriendlyUrls enabled by default.
Thanks to Sumit Maitra for his help with this article
May 23, 2013
Building an Image Flip Viewer as an ASP.NET Web API Service using Knockout JS

I wanted to build one using JavaScript with one requirement that is it shouldn’t load all images at the same time because if you use big images, it kills the page load performance.
With this goal and an ASP.NET Web API backend in mind, I set about building my ‘FlipView’ component in JavaScript.
May 20, 2013
Bundling and Minification in ASP.NET MVC
This rich-ness of behavior on the web, is all thanks to the power of JavaScript frameworks, libraries and plugins, whereas the rich user experience comes from effective use of graphics and CSS3.
However all this has a cost. If we look at a plain vanilla ASP.NET Web Template in Visual Studio, it has a total of eight (8) JavaScript files and sixteen (16) css files. Now most of these are loaded in the _Layout page. Some are loaded as required in Forms Pages. But how does the loading of these many artifacts affect the performance of your web site? Let’s find out.
May 19, 2013
Uploading Multiple Files through an ASP.NET Web API Service
The API Controller
Step 1: We start off with a Basic Web Application Template and add an empty API Controller to it.Step 2: Next we add an Upload method to which the Files will be posted. The complete method is as follows:
Subscribe to:
Posts (Atom)


