Creating Custom Label Controls
page 4 of 6
by Brian Mains
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 27458/ 51

Rendering Label Messages Issue

A label is often used as a warning of some sort. It often warns the user of some action; however, when the form is in view, edit, insert, or even audit mode, that message usually changes to be more appropriate. Oftentimes the code is not located in the same place, meaning that one has to dig through the code to figure out where the message is being rendered.

Optimally, the messages should be stored in a constant or in a resource file, but that does not always happen.  As an alternative, it is better to clean it up using one of those approaches, or the following control can be used to store the label's text in the ASPX content.

View Entire Article

User Comments

Title: fert   
Name: fo kos
Date: 2012-12-10 8:56:24 AM
fo kos kos ley kos
Title: Nice Addition   
Name: Michael Davey
Date: 2007-11-29 8:46:40 AM
Neat additions to the label control.. thanks!

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

©Copyright 1998-2021  |  Page Processed at 2021-02-26 11:03:26 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search