ASP.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 600 Page Views: 

State difference between Page.RegisterClientScriptBlock and Page.RegisterStartupScript?



Posted By: Avi Date: 30 September 2010 11:20:13 PM
 Answer:

Page.RegisterClientScriptBlock:- It is meant for the functions which must be available to the page. For this purpose they are always kept at the start of the HTML file or ASP.net file. These methods places the Scripts directly after the opening of the tag in the page. Page.RegisterStartupScript :- These are meant for the commands which are required at the time of page load, so as the page is available for the script. This script resides at the end of the HTML file or ASP.net file.They are placed at the end of the element.


Posted By: avibtech


Date: 30 September 2010 11:20:13 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image Rn5MqC
Related Questions
ASP.Net : What do you mean by fragment caching ?

What do you mean by fragment caching ?

In asp.net there is a mechanism to cache the portion of pages known as page fragment caching. It is....
Category: ASP.Net Date: 10/2/2010 6:52:19 PM
ASP.Net : What do you mean by bubbling an event?

What do you mean by bubbling an event?

ASP.net provides a technique known as event bubbling which allows a child control to propagate event....
Category: ASP.Net Date: 10/2/2010 5:06:20 PM
ASP.Net : How a control can participate in event bubbling?

How a control can participate in event bubbling?

There are two methods through which a control can participate in event bubbling. These methods are i....
Category: ASP.Net Date: 10/2/2010 5:06:20 PM
ASP.Net : Diffrentiate between Response.Write() and Response.Output.Write()?

Diffrentiate between Response.Write() and Response.Output.Write()?

Response.write:- 1. An unformatted output is displayed. 2. It writes the text stream. 3. It will ou....
Category: ASP.Net Date: 10/2/2010 4:41:19 PM
ASP.Net : Which transport protocol is used to call a Web Service?

Which transport protocol is used to call a Web Service?

SOAP (Simple Object Access Protocol).It is used to exchange information in a decentralised enviropnm....
Category: ASP.Net Date: 10/2/2010 12:20:19 PM