There is a project with ASP.NET server controls.
There is a base class EuropeClass and two subclasses SpainClass and ItalyClass.
All three have specific client JavaScript code. The code has functions used to create HTML
elements for the controls.
Each of these JavaScript code in an ASP.NET page must only be included once in the
generated HTML page (note that the page can use multiple copies of these controls).
What should be done? Select two.
Note:
PASSGUIDECLASS is the name of the control class.
PassGuideScript contains the Java code for the control.
PassGuide.js is a file that includes the JavaScript.
A.
Use code
Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), “script”, PassGuideScript)
…
B.
Use code
Page.ClientScript.RegisterClientScriptInclude(Me.GetType(), “script”, “PassGuide.js”)
…
C.
Use code
Page.ClientScript.RegisterClientScriptBlock(GetType(PASSGUIDECLASS), “script”,
PassGuideScript)
D.
Use code
Page.ClientScript.RegisterStartupScript(GetType(PASSGUIDECLASS), “script”, PassGuideScript)
..
E.
..put the code into file Page_Update method of each Control.
F.
..put the code into file Page_Generate method of each Control.
G.
..put the code into file Page_Load method of each Control.
H.
..put the code into file Page_Refresh method of each Control.