Page.ClientScript.RegisterClientScriptBlock - ASP.NET AJAX

Q.  Which property and method of the Page object do you use to register client script dynamically from code?
- Published on 27 Jul 15

a. ScriptManager control is used to dynamically register client script from code.
b. The Page.ClientScript.RegisterClientScriptBlock is used to dynamically register client script from code.
c. ScriptManagerProxy control is used to dynamically register client script from code.
d. None of the above.

ANSWER: The Page.ClientScript.RegisterClientScriptBlock is used to dynamically register client script from code.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)