Generate

Description

Creates HTML syntax for the Web DataWindow.

Applies to

DataWindow type

Method applies to

Web

Server component

Syntax

Web DataWindow server component

string dwcontrol.Generate ( )

Returns

Returns an HTML rendering of the current page of the DataWindow if the method succeeds and an empty string if an error occurs.

Usage

Call this method to create HTML syntax from the DataWindow defined for the server component. The Generate method is usually called by a server-side script running on a page server. The page server creates the complete Web page by combining the return value with other appropriate HTML elements.

The contents of the page of data can be affected by user actions in the client control. The page server calls the SetAction method before calling Generate to apply the user’s actions.

The Generate method causes DataWindow columns to be rendered as HTML INPUT elements with the following exceptions:

If the column has a validation rule, it is translated to JavaScript if possible. Parts of the DataWindow object included in the generated HTML are:

DataWindow features that will not be rendered into HTML include:

Examples

Example 1

The following example generates a DataWindow object in HTML:

dwGen.Generate();

See also