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



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

Answer / aadesh kumar

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" %>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

asp.net interview questions

0 Answers  


Which is faster viewbag or viewdata?

0 Answers  


What are Sticky Sessions?

2 Answers   Infosys,


How many types of validation are there?

0 Answers  


What is difference b/w Generic List and Arraylist, Generic List Vs HashTable, Generic List Vs No Generic? Pls Explain with example.

2 Answers   Polaris, Syntel,






List the types of authentication supported by asp.net?

0 Answers  


Contrast the use of an abstract base class against an interface?

5 Answers   iLink,


Which template must you provide, in order to display data in a Repeater control?

1 Answers  


What is a pixel url?

0 Answers  


in which protocol ASP.NET WEB API Work?

0 Answers   HCL,


What is the difference between application object and session object?

4 Answers   IBS,


Difference between datagrid and datareader?

1 Answers  


Categories