Controlling the size of generated code

Some supported features increase the size of the generated code. If you do not use a feature such as display formatting, validation rules, or client-side scripting, you can enhance performance by preventing the server control from generating code for the unused feature. You can turn these features on or off in the Properties window for the WebDataWindowControl or in the Web Generation category in the Properties window for the DataWindow object in the DataWindow Designer plug-in.

You can also cache client-side methods in JavaScript files to reduce the size of the generated code and increase performance on both the server and the client. Without JavaScript caching, each time a Web DataWindow is rendered in a client browser, JavaScript code for DataWindow methods is generated on the server and downloaded to the client.

When you set DataWindow object or WebDataWindowControl properties to reference cached JavaScript files, the methods defined in the files are not generated with the HTML or XHTML in any Web DataWindow pages that are sent to the client browser.

For more information, see “Generating JavaScript for common management tasks”.