Creating a secondary View control

In this recipe we will see how to move beyond the basic View, Edit, and Settings controls to create a second View control. We'll start with the Datagrid project from Chapter 6, Data Entry Tricks and add a new control to it. Then in the next recipe we'll see how to navigate to the new control from the Datagrid.

There are six steps to create a secondary View control:

  1. Design the layout of the control.
  2. Create the new web control in your project.
  3. Add the code that will populate the control the page loads.
  4. Add a return link that takes the user back to the primary view control.
  5. Add the local resources for the labels.
  6. Update the manifest with the new files.

The View control we will create is organized in a simple HTML table ...

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.