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
How do sessions work?
What are the disadvantages of asp.net?
Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc
What is the Intermittent crashing of application in production?
Where is cookie used in asp.net?
What is css and what is it used for?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What is microsoft windows sharepoint services?
Where do the cookie state and session state information be stored?
How we can force all the validation controls to run?
What is Pre-Render event in ASP.NET?
What is clickid?
When Cookies are expired in ASP.NET?
What is a web api? Which protocol is used in a web api?
What is role-based security in asp.net?