What's the difference between Page.RegisterClientScriptBlock and Page.RegisterStartupScript ?
Answer Posted / 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 View All Answers
What are the types of session in asp.net?
How can you apply a theme to your asp.net application?
Explain about Multi-Language integration?
What is difference between datalist and gridview?
What is the advantage of using Windows authentication in a Web application?
What is the full form of asp.net?
How to handle errors in Web API?
How to add DateTime Control in normal DataGrid Server Control?
Explain the use of duration attribute of @outputcache page directive.
What is query string in asp.net?
What is application session?
Is oauth for authentication or authorization?
Explain what is an abstract class?
Which is better php or asp.net?
Do session use cookies in asp net?