GdPicture.NET.14.WEB.DocuVieware.API
GdPicture14.WEB Namespace / DocuViewareControl Class / DeferredScripts Method
The System.IO.TextWriter object that receives the scripts content.
Specifies if the scripts has to be rendered wrapped by '<script>' tag or not. (default value set to true)
Specify whether the JS file (docuvieware-min.js) should be included. Multiple inclusions would result in an unnecessary increase of the rendered page size. (default value set to false)

In This Topic
DeferredScripts Method (DocuViewareControl)
In This Topic
Outputs the initialization scripts content of the DocuVieware control instance to a provided System.IO.TextWriter object.
Syntax
'Declaration
 
Public Sub DeferredScripts( _
   ByVal TextWriter As TextWriter, _
   Optional ByVal IncludeTag As Boolean, _
   Optional ByVal IncludeResource As Boolean _
) 
public void DeferredScripts( 
   TextWriter TextWriter,
   bool IncludeTag,
   bool IncludeResource
)

Parameters

TextWriter
The System.IO.TextWriter object that receives the scripts content.
IncludeTag
Specifies if the scripts has to be rendered wrapped by '<script>' tag or not. (default value set to true)
IncludeResource
Specify whether the JS file (docuvieware-min.js) should be included. Multiple inclusions would result in an unnecessary increase of the rendered page size. (default value set to false)
Remarks
This method can be called only if the RenderControl method is called with renderScripts set to true.
If you enabled CSP policies you should call DeferredStyles before DeferredScripts
See Also