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 ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
How to display validation messages in one control?
What is application variable in asp.net?
How many types of controls are there in asp.net?
What are the differnt types of handler in ASP.NET?
Difference between Response.redirect vs server.transfer?
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
Why does my asp.net file have multiple tag with runat=server?
What is manifest in .net framework?
What methods are fired during the page load? Init()
How long do session variables last?
Explain one critical mapping?
What is an example of an application service provider?
How ViewstateMac works?
What is asp.net? How is it different from asp?