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
- In Design view, drag a DataList control from the Toolbox onto the page.
- Set the control's DataSource and DataKeyField properties.
- In Design view, right-click the DataList control, choose Edit Templates, and then choose Item Templates.
The control is displayed in template-editing mode.
- Add HTML text and other controls (Web controls or HTML controls) to the item template. Optionally, define other templates as well.
See Also
- Adding Controls to a Page