DataBinder.UseClientScriptHtmlInjection

Determines whether the control uses client script to inject error notification icons/messages into the page. Setting this flag to true causes JavaScript to be added to the page to create the messages. If false, the DataBinder uses Controls.Add to add controls to the Page or other Containers.

JavaScript injection is preferrable as it works reliable under all environments except when JavaScript is off. Controls.Add() can have problems if script is used in a container that has an error and needs to add a control.

public bool UseClientScriptHtmlInjection { get; set; }

See also:

Class DataBinder

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic