ScriptManager.RegisterClientScriptInclude(this, GetType(), "myScript", "~/Scripts/myScript.js");
ScriptManager.RegisterStartupScript(this, GetType(), "myScriptBlock", "alert('Hello, world!');", true);This code registers a client-side script block to be executed when the page loads. The "true" boolean specifies that the script block should be executed immediately after the page is loaded, rather than waiting for an event to occur. The script block itself simply displays an alert box with the message "Hello, world!". Package Library: The ScriptManager class is part of the System.Web.UI.WebControls namespace, which is part of the .NET Framework Class Library. Therefore, no additional package library is required.