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 page life cycle events?
What is a viewbag?
Can I have a unique key as foreign key?
What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC
Why do we need url encoding?
How would you turn off cookies on a page of a website?
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?
What are the best practices to follow to secure connection strings in an ASP.NET web application?
what is DLL Hell and how it is solved in .NET? please explain clearly??
Why the javascript validation not run on the asp.net button but run successfully on the html button?
Explain asp.net web forms.
What do you mean by authentication?
Difference between response.redirect and server.transfer?
What are the memory-mapped files?