What's the difference between Page.RegisterClientScriptBlock and Page.RegisterStartupScript?

 Posted by Poster on 7/1/2008 | Category: ASP.NET Interview questions | Views: 14410

RegisterClientScriptBlock is for returning blocks of client-side script containing functions. RegisterStartupScript is for returning blocks of client-script not packaged in functions-in other words, code that's to execute when the page is loaded. The latter positions script blocks near the end of the document so elements on the page that the script interacts are loaded before the script runs.<%@ Reference Control="MyControl.ascx" %>

Source: http://groups.msn.com/MumbaiUserGroup/aspnetfaqs.msnw | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Sukhjeevan on: 9/20/2011 | Points: 10
We can get more explanation over here


Login to post response