ASP.NET Controls

A Self-Closing HtmlGenericControlAn easy way to add HTML controls to your webform at runtime is to use HtmlGenericControl. However, this class always renders both an opening and closing tag. This article presents a version that is self-closing.By Jonathan Wood on Friday, March 4, 2011

Grid ControlsArticles about topics relating to ASP.NET grid controls.

Confirm Before Deleting GridView ItemUse this technique to efficiently confirm a delete operation with the user from controls such the GridView control.By Jonathan Wood on Tuesday, December 7, 2010

User ControlsArticles that discuss web development with ASP.NET user controls.

A Random Image Rotator ControlHere's a web user control that will randomly rotate images from a list of image files. Each image file in the list can be flagged as active or inactive and the control will only display images flagged as active. Simply edit the file list to change which images are displayed on your website.By Jonathan Wood on Saturday, October 27, 2012

An Error Message ControlAll web applications should check for errors. But what's the best thing to do when one occurs? This handy little class makes reporting errors easy.By Jonathan Wood on Monday, January 3, 2011