Developing Custom Controls - Part 1
page 1 of 8
Published: 02 Jan 2008
Abstract
In the first part of the series, Mahr examines the necessity of custom controls, and he discusses the various types of custom controls. You will also learn the differences between a user and custom control and the development of an extended custom control with the help of relevant source codes.
by G. Mohyuddin
Feedback
Average Rating: 
Views (Total / Last 10 Days): 35758/ 65

Introduction

Server controls are meant for eliminating redundant code and boosting productivity. They make development tasks easier by hiding their internal details and providing ready to use packaged functionality. There are many controls shipped with ASP.NET that shorten development effort, but there are always opportunities for us to build our own controls to reduce even more development effort. Many times business scenarios create the need of custom controls to simplify development solutions.

If you want some reusable functionality in a single application or for few developers and it can be achieved from combining existing web controls then user controls can be a good choice. But when you want to make a piece of functionality reusable and redistributable then custom controls will be the best solution. You can extend some control or make one from scratch or combine multiple ones as per your need. This activity will let you get into the things and will add confidence for bringing novelty and uniqueness into your projects. Most importantly, you will become adept at intrinsic details of the architecture of the dozens of standard controls shipped with ASP.NET. The purpose of these controls is to achieve a different functionality (from the existing server control), a totally new functionality, or a combined functionality of several other existing or new server controls.


View Entire Article

User Comments

Title: Comparing UC vs CC is awesome   
Name: satya
Date: 2010-03-22 11:16:17 PM
Comment:
Differences b/w User controls, Custom controls are explained excellently.
Title: Error Rendering Control   
Name: Luiz Ricardo
Date: 2009-03-27 9:17:41 AM
Comment:
I have "Error rendering control" when I change TextCaseMode or any other enum property at design time.
Did I forget anything?
Title: Good   
Name: Raju
Date: 2009-03-23 6:29:02 AM
Comment:
At design time,if I change the property it will show
error rendering control
Title: Looks promising   
Name: JP
Date: 2008-12-10 5:56:38 AM
Comment:
reusable in true sense!
Title: Testing   
Name: Tester
Date: 2008-12-10 5:40:56 AM
Comment:
Really good
Title: Good show !   
Name: Ananth
Date: 2008-06-09 3:56:36 PM
Comment:
Nice and Neat !!
Title: Really Intresting   
Name: Uzair Aziz
Date: 2008-03-14 8:58:48 AM
Comment:
It is really helpful and easy to understand for me.now i can develop other custom controls.

Tnank you so much.....
Title: thanks   
Name: ngocthom
Date: 2008-01-09 10:58:04 PM
Comment:
thanks so much for your supply, it is very useful






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-25 7:01:51 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search