RegisterClientScriptBlock and RegisterStartupScript both used to register and execute JavaScript code after the page finished loading, or any submit operation is performed by the user.
In a page where the RegisterStartupScript method is used, the JavaScript code will be placed at the bottom of the ASP.Net page, just before the closing form element (). If the RegisterClientScriptBlock method is used, the JavaScript code will be placed at the top of the ASP.Net page just after the opening form element (