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 |
asp.net interview questions
Which is faster viewbag or viewdata?
What are Sticky Sessions?
How many types of validation are there?
What is difference b/w Generic List and Arraylist, Generic List Vs HashTable, Generic List Vs No Generic? Pls Explain with example.
List the types of authentication supported by asp.net?
Contrast the use of an abstract base class against an interface?
Which template must you provide, in order to display data in a Repeater control?
What is a pixel url?
in which protocol ASP.NET WEB API Work?
What is the difference between application object and session object?
Difference between datagrid and datareader?