Creating a DropDownLabel Server Control
page 1 of 4
Published: 30 Aug 2005
Unedited - Community Contributed
Abstract
Server controls are the life force behind ASP.NET development. The server controls that come with the ASP.NET framework are fantastic, but sometimes they do not perform the exact task that is required. Luckily, Microsoft has designed the server control model so that developers can extend and implement their own custom server controls based on the ASP.NET control set. This article will explain some of the concepts in custom server control design, and also provide a walkthrough on how to create a custom DropDownLabel control.
by Matthew Mondok
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 27579/ 95

Introduction

Download Code

Recently I needed to refactor an Access project to an ASP.NET application, and I found that the Access application contained a ComboBox that displayed the selected value, not the item, in a label.  I figured that I could easily find an ASP.NET server control that provided the same functionality, but I had no luck.  My only choice was to create my own.  My initial instinct was to use a client-side callback, or AJAX, but I needed this control in literally hundreds of places.  Obviously, I had no choice but to create a server control.  In this article, I will explain not only how to create this specific control, but also how to get started creating server controls in general.

 


View Entire Article

User Comments

No comments posted yet.






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


©Copyright 1998-2017 ASPAlliance.com  |  Page Processed at 2017-06-22 12:34:02 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search