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
List the asp.net validation controls?
Where is cookie used in asp.net?
What is different in .net 1.1 and .net 2.0?
What are the different kinds of assemblies?
What are the versions of garbage collection?
What is the difference between asp.net and mvc?
What is asp.net introduction?
What kind of programming language is ASP.NET?
Can you change a Master Page dynamically at runtime?
What is a form tag?
List the major built-in objects in asp.net?
Tell me the code snippet to show how we can return 404 errors from HttpError?
What is the difference between client-side and server-side validations in webpages?
What is csrf attack in asp.net?
How to comment out asp.net tags?