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 is active web page?
What are the difference between overriding and overloading?
What is the difference between sealed vs static class?
Can we have a web application running without web.config file?
Describe the disadvantage of cookies.
Explain authorization levels in .net ?
What is difference between asp.net and asp?
What are Authentication and Authorization?
How are sessions stored?
What is the advantage of using Windows authentication in a Web application?
What is the difference between session object and application object?
Which protocol is used in a web api?
What is a url string?
1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5
What is the difference between table and query?