In the System.Web.ui.page class, it contains regionTERTARTUPScript () and registerclientscriptblock () two methods:
Page.RegisterStartupScript (key, script);
Page.RegisterClientScriptBlock (Key, Script);
Key is the unique identifier for generating a client script block, Script is a client script block that will be generated (string type)
The only difference between the two is different from the location: the former is generated at the end, and the latter is generated at the beginning.