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

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
Comment:
fo kos kos ley kos
Title: Nice Addition   
Name: Michael Davey
Date: 2007-11-29 8:46:40 AM
Comment:
Neat additions to the label control.. thanks!






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


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