CyberStore Documentation
LoadClientScriptBlock Method


Dovetail.Ecommerce.ControlBases Namespace > CyberStoreBaseControl Class : LoadClientScriptBlock Method
The client script.
Name of the registered script.
Type of the registering control.
(Optional) True to minify.
Loads client script block.
Syntax
'Declaration
 
Public Sub LoadClientScriptBlock( _
   ByVal ClientScript As String, _
   ByVal RegisteredScriptName As String, _
   ByVal RegisteringControlType As Type, _
   Optional ByVal minify As Boolean _
) 
'Usage
 
Dim instance As CyberStoreBaseControl
Dim ClientScript As String
Dim RegisteredScriptName As String
Dim RegisteringControlType As Type
Dim minify As Boolean
 
instance.LoadClientScriptBlock(ClientScript, RegisteredScriptName, RegisteringControlType, minify)

Parameters

ClientScript
The client script.
RegisteredScriptName
Name of the registered script.
RegisteringControlType
Type of the registering control.
minify
(Optional) True to minify.
Remarks
When you use RegisterClientScriptBlock, the script is rendered right after the Viewstate tag, but before any of the page elements. Since this is a direct script (not a function that can be called, it will immediately be executed by the browser. But the browser does not find the label in the Page's DOM at this stage and hence you should receive an "Object not found" error.
See Also

Reference

CyberStoreBaseControl Class
CyberStoreBaseControl Members