2010-12-25

How to Know the Execution Time of SQL Statements in Simple Way

Small action will make you able to measure your performance enhancement.. Read More!

2010-12-11

Be Simple Winner

Be Simple Winner! looks strange phrase. but I believe it is making a big effect in your life. Click here to read more about this

2010-12-03

New RSS Url for Knowledge Exchanger feeds

Knowledge Exchanger post the following announcement, I am copy/paste what is posted there

Announcement to all Knowledge Exchanger RSS subscribers

Knowledge Exchanger decided to get benefits from feed burner site to announce for the new articles. The old RSS methodology will be stay supported for the time being, but we strongly recommend to subscribe to the new feed burner URL to be able to serve you in a better way.
Please click on the RSS icon appearing on the top right hand side of the announcement list or subscribe to the this feedburner URL

Thanks for your corporation and understanding!
Knowledge Exchanger Team

2010-11-19

Negative Comments, Shall I Delete It?

Do you think Deleting negative comments/review a good idea? shall you hide it and act as if there is nothing happened. I believe you HAVE TO keep it and make it visible to public users just like the positive reviews/comments. Read More!

Advanced LINQ to Object Operation

You can do many operations by adopting, do ing  will reduced number of code lines that you will write to accomplish your job. Read more about this

2010-11-08

Enhance Performance in .Net 4.0

There is lot of performance enhancement in .net framework 4.0.. I read a very interesting article about this and I wanted to share it with you. this article is published on CodeGuru... Read More!

Date Different in SQL Server DB Vs Oracle DB

How can I find differences in weeks between 2 dates by using SQL statement. I answered this question by using SQL server syntax and compare this with Oracle syntax. Read More!

2010-11-06

Microsoft Technologies

I had many discussions with many friends regarding to the feasibly of using Microsoft technologies to implement some critical systems where the 1 second downtime is not acceptable. My friends was not in a favor of using MS products to implement any critical systems.

Read More!

2010-06-18

Introduction to Unit Testing

Get a small introduction for Unit Testing and what is the benefits you will have if you apply it to your project



2010-04-29

Mediator Design Pattern

Introduction:
   Sometimes you want to design your classes set that interact with each other in a loosely coupled manner by keeping your classes away from referring each other directly... Mediator Design Pattern solve this issue by promoting the idea of loosely coupling classes .....




Click here to read more!

2010-04-25

Builder Design Pattern


Introduction:

    Sometimes you need to build your Classes in such away where its representation is different according to some attributes and this representation of this class needs to be separated from its construction. Builder Design pattern solve this issue by abstract complex object construction from its representation.


Example:

    An example of Builder Design pattern is how .....


Read More!!


2010-04-11

State Design Pattern


Introduction:
Sometimes you want to build a class where its behavior changed according to its state. State Design pattern provides a good class structure to solve this issue. State Design pattern also known as Object for state pattern is .....   

2010-04-03

Interpreter Design Pattern

Introduction:
Sometimes you want to define a grammar for special language for certain reasons. After defining the syntax of this language, you need to build an interpreter to interpret the language and do actions accordingly. Interpreter Design Pattern help you to......
 







2010-03-22

Decorator Design Pattern

Introduction:
Sometimes you want to add more responsibility to an object dynamically. Decorate Design Pattern provide us a flexible alternative to creating subclasses to extend this functionality....
 



Façade (Facade) Design Pattern

Introduction:
Façade is one of the most used design patterns on software industry. Basically it is about providing a simple interface for large body of code, like class library and it will help you on :

  1. Make large body of code easier to be understand.

Composite Design Pattern

Introduction :
Sometimes you want to treat a group of objects as a single instance. Composite design pattern is aiming to compose object into a structure of tree to represent part-whole hierarchy structures.

A simple example of this design pattern is directory structure...
 



2010-03-18

Adapter Design Pattern

Introduction:
Sometimes you have set of classes with different interfaces and you want to call logic on those classes in a consistent way. Adapter design pattern solve this issue, by providing a technique (best practice)  to wrap those classes somehow to make it easy to deal with this set of......
 


2010-03-10

Bridge Design Pattern

Introduction:
Sometimes you want to decouple the abstraction from its implementation so both of them can be vary independently. Bridge design pattern helps you in implementing this decoupling easily. The bridge uses encapsulation, aggregation, and can use ....
 



Proxy Design Pattern

Introduction:
Sometimes you become into a case where you does not or can not reference an object directly, but you still want to interact with that object to do some job. The intent of the proxy design pattern is to control access to an object by providing placeholder for it. Below example will make the idea clear to you.....
 





        

2010-03-09

Iterator Design Pattern

Iterator Design Pattern

Introduction:
Sometimes you want to access a collection of objects in a sequential way without even expose how things is going inside your implementation . Iterator Design Pattern Provides you with a Skelton of how to design your classes to solve this issue.
 



2010-03-07

Prototype Design Pattern

Introduction:
Sometimes we have a case where we want to build an object based on another object instead of creating a new fresh object each time, we can make a copy of an already existing object instantly and start using the new created object. By doing so, we do not have to repeat ......
 

2010-03-05

Flyweight Design Pattern

Introduction:

Flyweight design pattern target to minimizes the memory usage by sharing as much data as possible with other similar objects. It is very useful when have large amountof objects in memory which have lot of similar values. by sharing the similar values between all the objects, memory usage will be much less.

Click here to read more!





2010-03-02

Strategy Design Pattern


Introduction:

Sometimes you want your object to behave differently if its internal status changed. The strategy Design pattern enables client code to choose which behavior from a family of behaviors and give client code a simple way to enable that behavior.


Click here to read more!




Singleton Design Pattern


Introduction:
There is some cases when you want to have one and only one instance of a specific class and prevent anybody from having the ability to create more than one instance of that class. Singleton Design pattern came to solve this issue by defining a well known structure for your class

Abstract Factory Design Pattern

    Introduction:
    Sometimes you want to create an instance of class that is related to a family of classes without specifying the exact concert class. Factory design pattern came to solve this issue and make it easy for us.
    In order to avoid duplicating the code that make the decision everywhere an instance is created, we need a mechanism for creating instances of related classes without necessarily knowing which will be instantiated.
    There are 2 types of Factory Design Pattern:
     

2010-02-28

Design Patterns


What is Design Pattern:
Design Pattern: Is a general reusable solution to a commonly occurring problem in software.
Design Patten is a description or template of how to solve the problem we usually face during software development life cycle. It is showing relationship between classes without specifying how the final application will looks like. .....




2010-02-12

How to Solve "Error Creating Control" Error Message (ASP.Net Site)

If you face this error while trying to open a web application project


Error Creating Control - control_Name

'/LM/W3SVC/1/Root/Project_Name' is not a valid IIS application.







You can resolve this error by following the below steps , the root cause of this error is the incorrect mapping between web application project and the virtual directory in your IIS.


To Resolve this error , follow the following steps:


1-Right click - you web application project and select Properties -> Web

2- in the server section choose Use IIS Web Server -> then click Create Virtual.

3- Clean your project from any DDLs that was previously complied and compile your project again.


by doing the above steps this issue should got resolved.







2010-02-05

Http Handler vs Http Module

  • What is ASP .Net  HTTP Handler
An ASP.NET HTTP handler is the process (frequently referred to as the "endpoint") that runs in response to a request made to an ASP.NET Web application. The most common handler is an ASP.NET page handler that processes .aspx files. When users request an .aspx file, the request is processed by the page through the page handler. You can create your own HTTP handlers that render custom output to the browser

Reference: http://msdn.microsoft.com/en-us/library/bb398986.aspx

  • What is ASP.Net HTTP Module
An HTTP module is an assembly that is called on every request that is made to your application. HTTP modules are called as part of the ASP.NET request pipeline and have access to life-cycle events throughout the request. HTTP modules let you examine incoming and outgoing requests and take action based on the request.

Reference: http://msdn.microsoft.com/en-us/library/bb398986.aspx


Note:   The basic different between HTTP Handler and HTTP Module, is that HTTP Module is event based processor.