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): 23417/ 172

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

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 5 and 3 and type the answer here:

User Comments

Title: Nice Addition   
Name: Michael Davey
Date: 11/29/2007 8:46:40 AM
Comment:
Neat additions to the label control.. thanks!

Product Spotlight
Product Spotlight 






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


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 11/21/2009 1:49:50 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search