Basic JavaScript Question:
Download Questions PDF

What is the difference between RegisterClientScriptBlock and RegisterStartupScript?

Answer:

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.

Download JavaScript Interview Questions And Answers PDF

Previous QuestionNext Question
What are the ways to emit client-side JavaScript from server-side code in ASP. NET?What is the difference between a web-garden and a web-farm?