Here’s a closer look at the service inputs in this button process:
RegisterType and Key
The input “Key” is used to keep the registered script unique. This is useful when we are registering more than one script.
The input “RegisterType” what type of script we would like to register. Valid register types are :
- RegisterClientScriptBlock: This type registers the script on page runs every time the function is called.
- RegisterStartupScript: This type runs only on startups (when the page loads).
- RegisterOnSubmitStatement: This type is for registering script OnSubmit.