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

which directive is mandatory in page control

3 Answers   AG Technologies,


Differentiate between namespace and assembly.

0 Answers  


Name the validation control available in asp.net ?

1 Answers  


what are types of viewstate

1 Answers  


How do you manage session in ASP and ASP.NET ?

2 Answers   Cap Gemini, Microsoft,


Explain the difference between or and orelse?

0 Answers  


When during the page processing cycle is ViewState available?

1 Answers  


Anyone has Latest Microsoft ASP.NET Certification Dumps for these?

1 Answers  


Explain the different types of directives in .net?

0 Answers  


Please briefly explain the usage of global.asax?

0 Answers  


Where do we store our connection string in asp.net application?

0 Answers  


Hi! Could any 1 please suggest me a free practice online exam for asp.net exams.. thanks

1 Answers  


Categories