Control | Client script functionality |
|---|
Button | Setting the OnClientClick property causes the button to depend on client script. |
Calendar | This control uses LinkButton controls to implement day, week, and month navigation. If you use the Calendar control to display a single month without selection or navigation, the control does not require client script. |
ChangePassword | This control generates validator controls for text boxes and LinkButton controls for submit and cancel buttons. |
DataPager | If the QueryStringField property is not set and you are using NumericPagerField or NextPreviousPagerField objects, the DataPager control requires client script. |
DetailsView | By default, this control uses LinkButton controls. To avoid the need for client script, create templates and add Button controls for these functions. Client script can be used to paginate if the associated data source control supports this functionality. If the EnablePagingCallbacks property is true, client script is used to manage the callback. |
FormView | By default, the control uses LinkButton controls for functions such as switching to edit mode, paging, and so on. To avoid the need for client script, use the PagerTemplate property and add Button controls for these functions. |
GridView | By default, the control uses LinkButton controls for functions such as switching to edit mode, paging, sorting, and so on. To avoid the need for client script, create templates and add Button controls for these functions. If the EnableSortingAndPagingCallbacks property is true, client script is used to manage the callback. |
HtmlButton | Client script is used to support postback events. |
HtmlForm | This control is implicitly created by the <form runat=server> tag. The following properties require client script: |
ImageButton | Client script is used to support postback events. |
ImageMap | If you set the HotSpotMode property of the control or of individual hot spots to PostBack, the control requires client script to function. |
LinkButton | Client script is used to support postback events. |
LoginStatus | The control uses a LinkButton control to display the Logout link. To avoid the need for client script, create templates and add Button controls for these functions. |
Menu | Client script is used to open and close menu items, display pop-out panels, and control the display when users position the mouse pointer over menu items. |
Page | The MaintainScrollPositionOnPostback()()() property requires client script. |
PasswordRecovery | If the page's ClientTarget property is set to Downlevel, the control requires client script to function. |
ScriptManager | This control manages client script files and loads the Microsoft Ajax Library. |
Timer | Client script is used to perform postback events from the browser at defined intervals. |
TreeView | Client script is used to open and close nodes. It is also used when the TreeView control is configured to populate nodes on demand. Client script can be disabled for the TreeView control, in which case the selection behavior is performed in server code after a postback. However, the nodes themselves are rendered as links that use client script to perform a postback. Therefore, if the browser does not support client script, the TreeView control cannot perform a postback. |
UpdatePanel | Client script is used for partial-page rendering (asynchronous postbacks) and is an integral part of the functionality of this control. |
Validator controls: | By default, validator controls render client script to perform client-side validation to provide immediate validation feedback. However, because built-in validator controls (except the CustomValidator control) automatically perform a redundant validation check in server code, you can set the EnableClientScript property to false to avoid rendering client script for the validation controls. |
Web Parts controls | Client script is used to support drag-and-drop behavior, to add Web Parts controls to zones, verbs, and to support import and export functionality. |
Wizard, CreateUserWizard | The control renders LinkButton controls for navigation. To avoid the need for client script, create templates and add Button controls for these functions. |