Determines whether the client startup script is registered with the System.Web.UI.Page object.
![]()
true if the startup script is registered; otherwise, false.
Call this method before calling Page.RegisterStartupScript(string, string) to avoid unnecessarily assembling the client-side script. This is particularly important if the script requires a large amount of server resources to create.
The Page.IsStartupScriptRegistered(string) method has been deprecated. Use the erload:System.Web.UI.ClientScriptManager.IsStartupScriptRegistered method in the System.Web.UI.ClientScriptManager class.