Categories
Asp, Asp.net

What is the Difference Between RegisterStartupScript() Method and RegisterClientScriptBlock() Method?

What is the Difference Between RegisterStartupScript() Method and RegisterClientScriptBlock() Method? Both, RegisterStartupScript() method and RegisterClientScriptBlock() method will inject Javascript code that will fire during start up of subsequent postback. The RegisterClientScriptBlock method inserts the client-side script immediately below the opening tag of the Page object’s element. The code cannot access any of the form’s elements […]