Intersoft Support Center

Bind to SiteMapDataSource

This walkthrough shows you how to bind WebTreeView to SiteMapDataSource control.

During this walkthrough, you will learn how to do the following:

  • Use SiteMapDataSource.
  • Bind WebTreeView.

 Prerequisites

In order to complete this walkthrough, you will need the following:

  • SiteMap file to be use as datasource for SiteMapDataSource.
  • Visual Studio 2005/2008/2010 Application.

 Step-By-Step Instructions

To create new web application and bind WebTreeView to SiteMapDataSource

  1. Launch Visual Studio.NET 2008.
  2. Click on File menu, then select New and click Web Site.
  3. Select ASP.NET Web Site in the Template box and set Location to HTTP.
  4. Named the Web Site and click OK.
  5. Right-click on Project's name and select Add New Item.
  6. Select Intersoft AppForm in the My Templates box and named it as Walkthrough.aspx.
  7. Drag WebTreeView instance from ToolBar to WebForm.
  8. Right click on WebTreeView instance and choose Properties to show Properties Window.



  9. In DataSourceID property set the SiteMapDataSource that you want to use (e.g SiteMapDataSource1).



  10. Click the Collection button in DataBindings property to show WebTreeView DataBindings Editor.
  11. Check the Auto-generate data binding checkbox.



  12. After that, add the data bindings where you want to set the TextField.



  13. Press Apply and OK Buttons.
  14. Run the project.

Previous Next