DEVFYI - Developer Resource - FYI

What is the difference between RegisterClientScriptBlock and RegisterStartupScript?

JavaScript Interview Questions and Answers


(Continued from previous question...)

38. What is the difference between RegisterClientScriptBlock and RegisterStartupScript?

RegisterClientScriptBlock emits the JavaScript just after the opening

tag. RegisterStartupScript emits the JavaScript at the bottom of the ASP.NET page just before the closing
tag.

(Continued on next question...)

Other Interview Questions