Sunday, November 22 2009
Can Firefox replace IE as the corporate browser?
Biggest obstacle that Firefox faces in becoming number one browser is its ability to woo IT managers to adopt Firefox as the default corporate browser or at least convince them to officially deploy within their organization.
Monday, June 22 2009
Creating get from cache method using generic func delegate.
Every time I used custom caching in my application I had to write a method, method will return cached version of the object if it’s available otherwise it will populate the cache and return the cached version.
Wednesday, November 05 2008
Create your own light weight IOC container in .NET
There are lots of very good IOC container out there like Spring.Net and Castle Windsor, however the size of those frameworks makes me nervous specially when I have a small project and I do not need all those bells and whistles that comes with those frameworks. Following post will show you how to create and use simple IOC container.
Sunday, November 02 2008
Display Live Data In Silverlight Using ObservableCollection and INotifyPropertyChanged
Articles shows how to use ObservableCollection in combination with an object implementing INotifyPropertyChanged interface to display live data in Silverlight Application.
ObservableCollection is a generic dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed and INotifyPropertyChanged provides PropertyChanged notification to clients when any property value gets changed.
Thursday, October 30 2008
Authorization in ASP.Net MVC using XML Configuration.
Doing authorization in a clean way is always tricky, You want a delicate balance between an extreme abstraction and something like embedding roles in-side your compiled code, I have always preferred simple abstraction either using roles and their corresponding mappings in the database or using simple xml file to store action to role mappings.
Tuesday, February 05 2008
XSLT Transformation in ASP.net MVC framework
In my last post I talked about using partial view to render hierarchial data, however XSL transformation fits more naturally for such case. ASP.Net has XML control which can display XML document using Extensible Stylesheet Language Transformations. Following example shows ASP.NET MVC Framework way of doing similar thing.
Sunday, February 03 2008
Display hierarchical data in ASP.net MVC framework
This article shows possible ways to display hierarchical data in ASP.NET MVC framework using recursive partial view.
Monday, January 28 2008
AJAX Get Request using ASP.NET MVC & Prototype
This post presents a simple AJAX get call sample using ASP.NET MVC Framework and Prototype JavaScript framework.
Saturday, October 06 2007
Use .Net 2.0 compression library and HttpModule to compress your webpages.
Article explains how you can create very simple HttpModule to compress your dynamic content using compression library (System.IO.Compression) available in .net 2.0.
Thursday, September 20 2007
Read Asp.net Request Param and Session dynamically into properties
Article shows how you can use Attributes and Reflection to dynamically populate property with value from param, session or context without writing any addition code. I have used this technique in past and I hope you will also find it useful.