Friday, August 12, 2011

Software Design Pattern

Design patterns can speed up the development process by providing tested, proven development paradigms. Effective software design requires considering issues that may not become visible until later in the implementation. Reusing design patterns helps to prevent subtle issues that can cause major problems and improves code readability for coders and architects familiar with the patterns.


There are two types of design pattern
1)Creational design pattern
it is further devided as
a)Abstract factory
b)Builder
c)factory method
c)Object pool
d)Prototype
e)Singleton


and
2)Structural design pattern
a)Adopter
b)Bridge
c)Composite
d)Facade
e)Flyweight
F)Proxy
g)Decorator
h)Private class data

Monday, August 8, 2011

Difference between Usercontrol and Custom control

User Control
1.Web user controls are easy to make, but they can be less convenient to use.
2.Web user controls are compiled dynamically at run time they cannot be added to the Toolbox.
3.the only way to share the user control between applications is to put a separate copy in each application, which takes more maintenance if you make changes to the control.
4. If your control has a lot of static layout, a user control might make sense.
Custom Control
1.Web custom controls are compiled code, which makes them easier to use but more difficult to create.
2.Once you have created the control, however, you can add it to the Toolbox and display it in a visual designer with full Properties window support and all the other design-time features of ASP.NET server controls. In addition, you can install a single copy of the Web custom control in the global assembly cache and share it between applications, which makes maintenance easier.