Building an Edit control

In this recipe we will create a basic Edit control from the code generated by the Starter Kit. The Edit control displays a single record from the database using textboxes so we can edit the values. It also includes Update, Cancel, and Delete links to save, cancel, or delete the record.

The Starter Kit creates the control with a single field labeled "Content", a textbox, and a validation control to print a warning message if the record is saved without a value. This is a good start but we want to take out the content field and replace it with the five fields from the sample Employee table creating a control that will look something like this:

In this recipe we'll get a closer look at the EditEmployee control and see how ...

Get DotNetNuke 5.4 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.