nerdexam
Microsoft

70-573 · Question #64

You have several SharePoint sites. You plan to load a custom script in all pages of the sites. You need to ensure that you can activate or deactivate the script at the site level. What should you do?

The correct answer is D. Create a user control that contains the script. MNEMONIC RULE: AdditionalPageHead The delegate control resides in the AdditionalPageHead control on the page. It registers some ECMAScript(JavaScript, JScript) on the page. How to: Customize a Delegate Control

Developing for User Experience

Question

You have several SharePoint sites. You plan to load a custom script in all pages of the sites. You need to ensure that you can activate or deactivate the script at the site level. What should you do?

Options

  • ACreate a site definition and modify the CustomJSUrl attribute in the Onet.xml file.
  • BCreate a site definition and modify the <system.web> element in the web.config file.
  • CCreate a user control that contains the script.
  • DCreate a user control that contains the script.

How the community answered

(31 responses)
  • A
    10% (3)
  • B
    3% (1)
  • C
    6% (2)
  • D
    81% (25)

Explanation

MNEMONIC RULE: AdditionalPageHead The delegate control resides in the AdditionalPageHead control on the page. It registers some ECMAScript(JavaScript, JScript) on the page. How to: Customize a Delegate Control

Topics

#delegate control#custom script#Feature activation#site-level deployment

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice