Browse by Tags
All Tags »
Improving ASP.NET (
RSS)
To successfully let business logic drive the user interface, you need an extensive library of business rules. Here are the additional business rules available as attributes. In my “Peter’s Soapbox”, you will find attributes that I feel need to be provided to complete the library....
Each column has a name taken from the database. Yet there are many ways to display text about the column which does not match the column’s name. The DisplayAttribute (introduced in ASP.NET 4) provides the following properties that are available to your user interface:...
Validation attributes focus on evaluating data to report errors. The base class is System.ComponentModel.DataAnnotations.ValidationAttribute. It defines the IsValid() method, which is always overriden to evalutate the data. It also supplies the ErrorMessage property, where you can describe the error reported....
The System.ComponentModel.CategoryAttribute has long been around. It’s generally used for annotating properties on web controls so that design mode’s Property Editor can organize your properties. I think the CategoryAttribute makes a lot of sense as business...
This is part of a series of postings asking for improvements to Visual Studio and ASP.NET. As a commercial web control developer, I have to include extensions to Visual Studio's design mode, such as UITypeEditors and TypeConverters. Both of these classes...
This is part of a series of posts offering ideas to improve ASP.NET. I cringe when I see users would write recursive search code to find controls in the Page’s control tree. For example: public void UpdateTextBoxCss(Control parentControl, string css)...
This is part of a series of posts offering ideas to improve ASP.NET. I’m not a big fan of the FindControl() method (found on System.Web.UI.Control) for these reasons: To prepare for the search, it needs to build a sorted collection of all controls found...
More Posts