Intersoft WebCombo Documentation
Walkthrough: Implementing requery method using ISDataSource
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Data Binding Wakthroughs > Walkthrough: Implementing requery method using ISDataSource

Glossary Item Box

This walkthrough shows you how to implement requery method using ISDataSource.

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

 Prerequisites

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

  • Access to the Microsoft Access Northwind database.
  • Visual Studio 2005/2008/2010 Application.

 Step-By-Step Instructions

To create new web application and implementing requery method using ISDataSource

  1. Drag two WebCombo instances from ToolBar to WebForm.
  2. Create a new DataSet and name it dsRequery.
  3. Drag Products and Categories table into the DataSet.
  4. Right click on the product table and choose Add Query.
  5. In TableAdapter Query Configuration Wizard, specify a SQL Select Statement "SELECT     ProductID, ProductName, SupplierID, CategoryID, QuantityPerUnit, UnitPrice, UnitsInStock, UnitsOnOrder, ReorderLevel, Discontinued
    FROM         Products
    WHERE     (CategoryID = ?)" 
     
  6. Click the SmartTag on the upper right of the WebCombo.
  7. Set the DataTextField and DataValueField for WebCombo.
  8. In Choose Data Source field, choose <New data source...>.
  9. In Data Source Configuration Wizard, choose AccessDatabase and click next.
  10. Select the connection string in App_Data and click next.
  11. Select the table that you want to use, click next and finish afterwards.
  12. Run the project the combo will look like following.

See Also