Adding a WebDataWindowControl to a Web form

To use the DataWindow object in an ASP.NET application, you add a WebDataWindowControl to a Web form, then associate that control with the DataWindow object.

StepsTo place a WebDataWindowControl on a form:

  1. In Visual Studio .NET, create a new Visual Basic or C# ASP.NET Web Site, name it WebStart, and accept the default location.

    Default.aspx opens in the Source editor.

  2. Click Design to display the Web form.

  3. Select View>Toolbox if the Visual Studio Toolbox is not visible.

  4. In the Toolbox, expand Sybase DataWindow 2.0 and select the WebDataWindowControl icon.

    The image shows the StreamImageContainer and WebDataWindowControl items on the Sybase DataWindow 2.0 tab in the visual studio toolbox.

    If the WebDataWindowControl icon is not visible in the Toolbox, see “Installing DataWindow .NET” for how to add it.

  5. Click on the form where you want the top left corner of the Web DataWindow to display.