Back to Basics : Singleton Design Pattern using System.Lazy type

This article takes you to a simpler/alternative approach in making a Singleton Design Pattern implementation using System.Lazy class rather that using our traditional approach. Singleton Design Pattern implementation without lazy initialization: – This code is thread safe enabled This approach ensures that only one instance is created and only when the instance is needed. Also, …

Continue reading ‘Back to Basics : Singleton Design Pattern using System.Lazy type’ »

Disable Client Side validation on a button click – ASP.NET MVC

ASP.NET MVC we use client side validation using jQuery.validate plugin, which will be based on Model – Data Annotation validation attributes. In some cases we might want to disable such validation on a button click wherever it is not needed. For example: The below code block will register validation block for Title property in the …

Continue reading ‘Disable Client Side validation on a button click – ASP.NET MVC’ »

HTML5 – Introduction to HTML5Shiv for Internet Explorer 6/7/8

HTML5Shiv is a JavaScript workaround, discovered by Sjoerd Visscher, to enable support styling of HTML5 elements in versions of Internet Explorer prior to version 9.0, which do not allow unknown elements to be styled without JavaScript. Means your CSS classes and attributes will not be applied to the particular HTML5 specific display element, until and …

Continue reading ‘HTML5 – Introduction to HTML5Shiv for Internet Explorer 6/7/8’ »

Zip(Archive) API’s in .NET Framework 4.5 – Part 2 – ZipFile Class

In my previous post I shared some information on API’s/Classes included as part of System.IO.Compression namespace in .NET Framework 4.5, and given on overview of ZipArchive class. Once such class I would be sharing some insight with post today would be ‘ZipFile‘ class. The ZipFile class provides convenient static methods for working with zip archives: …

Continue reading ‘Zip(Archive) API’s in .NET Framework 4.5 – Part 2 – ZipFile Class’ »

Zip(Archive) API’s in .NET Framework 4.5 – ZipArchive Class

With release of .NET Framework 4.5, Microsoft has introduced new classes in to System.IO.Compression namespace. These classes will add the necessary programming support for Zipping(Achiving), and Extracting support for Zip Files in your .NET Source Code. Below are the newly introduced classes as part of .NET Framework 4.5: ZipArchive – Represents a package of compressed …

Continue reading ‘Zip(Archive) API’s in .NET Framework 4.5 – ZipArchive Class’ »

ASPNET MVC Framework Versions & Features

Introduction Today, Microsoft’s  ASP.NET MVC framework has become a robust framework for building highly scalable, maintainable  enterprise web applications.  I am just taking you through the journey of ASP.NET MVC since 2009 and where we are today. ASP.NET MVC is a free, fully supported Microsoft framework for developing great web applications using the Model-View-Controller pattern. …

Continue reading ‘ASPNET MVC Framework Versions & Features’ »