Click or drag to resize

EAPUtilRegisterStartupScript Method

Register startup script (assumed to be javascript) with the page. Use RegisterClientScriptBlock(Page, String, String) or RegisterClientScriptFile(Page, String, String) to register blocks of script defining functions and other code that does not require immediate execution. Use IsStartupScriptRegistered(Page, String) to determine if the block is aready registered.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void RegisterStartupScript(
	Page pg,
	string name,
	string script
)

Parameters

pg
Type: System.Web.UIPage
The page on which to register the script
name
Type: SystemString
The name of the script
script
Type: SystemString
The script block (without the script start and end tags)
See Also