What is the difference between RegisterClientScriptBlock and RegisterStartupScript?

Q

What is the difference between RegisterClientScriptBlock and RegisterStartupScript?

✍: Guest

A

RegisterClientScriptBlock emits the JavaScript just after the opening <form> tag. RegisterStartupScript emits the JavaScript at the bottom of the ASP.NET page just before the closing </form> tag.

2008-08-05, 6829👍, 0💬