NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Adding a DataList to a Web Forms Page

To add a DataList Web control to a page requires several steps. The following procedure describes the minimum that you must do to create a working DataList control.

To add a DataList Web control to a Web Forms page

  1. In Design view, drag a DataList control from the Toolbox onto the page.
  2. Set the control's DataSource and DataKeyField properties.
  3. In Design view, right-click the DataList control, choose Edit Templates, and then choose Item Templates.

    The control is displayed in template-editing mode.

  4. Add HTML text and other controls (Web controls or HTML controls) to the item template. Optionally, define other templates as well.

See Also

  1. Adding Controls to a Page