Home arrow ASP.NET arrow Reduce Repetitive Code with ASP.NET Custom Controls
ASP.NET

Reduce Repetitive Code with ASP.NET Custom Controls


In this article Rich explores the world of ASP.NET Custom Controls and how they can dramatically simplify development of ASP.NET web applications.

Author Info:
By: Rich Sbarro
Rating: 5 stars5 stars5 stars5 stars5 stars / 57
January 08, 2003
TABLE OF CONTENTS:
  1. · Reduce Repetitive Code with ASP.NET Custom Controls
  2. · Creating the Control
  3. · Databinding to the Control
  4. · Handling ViewState and Post Back Events
  5. · Implementing in an ASP.NET page
  6. · Conclusion

print this article
SEARCH DEVARTICLES

Reduce Repetitive Code with ASP.NET Custom Controls
(Page 1 of 6 )

One of the more useful features in ASP.NET is that you can make your own web controls by simply creating a class that inherits from any ASP.NET web control, such as the DropDownList or DataGrid.

Using this feature to create controls that automatically "grab" data can help ensure a consistent user interface and significantly reduce repetitive code.

Consider as an example a large web application where a standard drop down list must be displayed on several different pages.

Rather than create a DropDownList and all the code associated with populating it on every page, a developer could simply create a control that handles its own data access and data binding.

In this article I'll cover all you need to know about creating these controls and using them in your ASP.NET pages.
blog comments powered by Disqus
ASP.NET ARTICLES

- How Caching Means More Ca-ching, Part 2
- How Caching Means More Ca-ching, Part 1
- Reading a Delimited File Using ASP.Net and V...
- What is .Net and Where is ASP.NET?
- An Object Driven Interface with .Net
- Create Your Own Guestbook In ASP.NET
- HTTP File Download Without User Interaction ...
- Dynamically Using Methods in ASP.NET
- Changing the Page Size Interactively in a Da...
- XML Serialization in ASP.NET
- Using Objects in ASP.NET: Part 1/2
- IE Web Controls in VB.NET
- Class Frameworks in VB .NET
- Cryptographic Objects in C#: Part 1
- Sample Chapter: Pure ASP.Net

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials