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.

2010-10-05, 4131👍, 0💬