Category: .Net Development Tips

What is Extension Methods

Extension Methods is one of a nice features introduced with .Net 3.0 that allow developers to add new functionalities to existing data types without having a need to inherit from these types or compile old code. For example, if you are encrypting and decrypting strings in your application, wouldn’t it nice to have a code like Read More …

Introduction to SignalR

What is ASP.Net SignalR SignalR is a Technology that enable Real-Time messages/contents to be pushed from server to connected web clients without the need to refresh the web pages every specific period of time. In the old days, we used to have schedule timer on client side to request new data from server every specific period Read More …

Optimize Orchard Setup on Shared Hosting

In the past few days I was trying to setup Orchard on Godaddy shared hosting server. The steps that I follow was: Download Orchard CMS source code from the following link http://www.orchardproject.net/download   On this page, there is multiple options to download, I downloaded the one with Source Code as I’m interesting to look into Orchard code Read More …

What is Windows Universal Apps – in Short

Universal Apps in short is an application model that Microsoft invented for applications that is being served in Windows Store. This enabled the application to be served in both Windows Store and Windows Phone Store. It is not a really universal application cross all platform, but it is universal in Windows world only but this Read More …

Manage System.Transaction timeout

When using System.Transaction in .net framework; you may came across a timeout problem where you code needs longer time to run than the default timeout duration for System.Transaction.. this is because the System.Transaction will be aborted after few seconds which will rollback your changes.. to make the timeout longer than the default timeout duration, you Read More …

Responsive Web Design

Responsive web design is a web design approach that is aimed at crafting sites to provide an optimal viewing experience, easy reading and navigation with minimal efforts of resizing, panning, and scrolling – across wide range of devices including mobile, tablets and desktop devices. Mainly the Responsive web design position the page content in a Read More …

SOLID Object-Oriented-Design Principles

One of the main principles of OOD (Object Oriented Design) is SOLID principles. SOLID is stands for : 1. Single Responsibility Principle: This means the class has to have one and only one reason to responsibility. This responsibility should be encapsulated by the class. 2. Open/closed principle: The open/closed principle states that software entities (classes, modules, functions, …etc) should be Read More …

Visual Studio Achievements Extension

I believe Visual Studio Achievement extension is a very nice plugin to have it on Visual Studio. It is running in the background while you are doing your daily tasks to analyzes your actions and according to the progress you are going to get an achievement badge(s). Most often developer hard work and efforts will Read More …

Java Script Curly Braces place

I got annoyed while writing some Java Script inside Visual studio, because Visual Studio keep placing the curly braces at the same line as the control statement which what is called K&R style. as I am coming form C# background I would like to have the braces at the new line just like how the Read More …

Performance Troubleshooting (ANTS tool)

it happened once that a client raise an issue regarding to poor performance at certain area on an application that I was working on. That area was working perfectly on my environment, but at their environment it was not like that. I could not duplicate their environment locally because of security restrictions rules we have. Read More …

Parallelism in .Net 4.0

One of the major enhancements that Microsoft has accomplished is enhancing the parallelism in many .Net class library. that is making things much faster and using the hardware in more effective way. in .Net 3.5 and earlier versions of .Net framework, wee have to using Threads to accomplish the same job. Actually .Net 4.0 is Read More …

How to Compress Files in .Net

There is many options to compress files, and .net framework provide you with 2 easy ways to do it. Basically there are 2 class under System.IO.Compression namespace. More specifically those classes are:             1. GZipStream             2. DeflateStream Both of these classes has certain usage. I will start first by explaining how to use each Read More …