Version

ClientScript Class Members

The following tables list the members exposed by ClientScript.

Public Constructors
 NameDescription
Public ConstructorClientScript Constructor  
Public Fields
Public Properties
 NameDescription
Public Propertystatic (Shared in Visual Basic)ScriptManager  
Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic)EnableScriptCombiningThis method allows applications to turn on ScriptCombining so that multiple javascript files will be downloaded to the client as a single file. By default this is set to false to allow correct function when controls are loaded dynamically during Async Postbacks.  
Public Methodstatic (Shared in Visual Basic)GetImageDirectoryFromWebConfigGet value of imageDirectory defined in webconfig.  
Public Methodstatic (Shared in Visual Basic)GetJavaScriptDirectoryFromConfigReturns the JavaScriptDirectory value from the webconfig.  
Public Methodstatic (Shared in Visual Basic)GetWebResourceUrl  
Public Methodstatic (Shared in Visual Basic)IsAsyncPostBackCheck if postback is asynchronous and triggered by UpdatePanel or CallBackManager. If it is the case, then document.onload will never happen and control should do something about that.  
Public Methodstatic (Shared in Visual Basic)IsInsideOfCallBackChecks if control is rendered within CallBack triggered by UltraWebTab or by WebAsyncRefreshPanel.  
Public Methodstatic (Shared in Visual Basic)IsInsideUpdatingPanelCheck if postback is asynchronous and triggered by UpdatePanel, WARP or UltraWebTab that the control belongs to.  
Public Methodstatic (Shared in Visual Basic)IsNullRendering  
Public Methodstatic (Shared in Visual Basic)IsScriptDirectoryDefinedInConfig  
Public Methodstatic (Shared in Visual Basic)RegisterClientScriptResource  
Public Methodstatic (Shared in Visual Basic)RegisterCommonScriptResourceOverloaded. Registers the reference to ig_csom.js as a script include for the page specified.  
Public Methodstatic (Shared in Visual Basic)RegisterScriptBlock  
Public Methodstatic (Shared in Visual Basic)ResolveAndRegisterClientScriptIncludeOverloaded. Given the list of parameters required, this method will determine which resource to use, according to which value has been specified. defaultValue and embeddedResourcePath do not both need to be specified, but one of them MUST be a valid string.  
Public Methodstatic (Shared in Visual Basic)ResolveCSSDirectoryThis method will check to see if the cssDirectory has been specified through a config file. If it has, it will return the value from the config file. Otherwise, the value passed in as the originalPath parameter will be returned.  
Public Methodstatic (Shared in Visual Basic)ResolveFormsDirectoryThis method will check to see if the formsDirectory has been specified through a config file. If it has, it will return the value from the config file. Otherwise, the value passed in as the originalPath parameter will be returned.  
Public Methodstatic (Shared in Visual Basic)ResolveImageDirectoryOverloaded. This method will check to see if the ImageDirectory has been specified through a config file. If it has, it will return the value from the config file. Other wise, the value passed in as the originalPath parameter will be returned.  
Public Methodstatic (Shared in Visual Basic)ResolveJavaScriptFileNameChecks to see if javaScriptDirectory has been defined in a config file. If it has, the directory specified in the config will be used, along with the filename parsed out of the originalPath parameter.  
Public Methodstatic (Shared in Visual Basic)ResolveUrlOverloaded. The main purpose of this method is to resolve "~" into the applicationPath. This method is not needed for ASP.Net 2.0, since there is already a ResolveUrl method available at the Control level.  
Public Methodstatic (Shared in Visual Basic)SetInsideOfCallBackSet global flag for CallBack rendering. It can be used only by UltraWebTab or by WebAsyncRefreshPanel.  
See Also