Microsoft
70-515 · Question #15
70-515 Question #15: Real Exam Question with Answer & Explanation
Sign in or unlock 70-515 to reveal the answer and full explanation for question #15. The question stem and answer options stay visible for context.
Question
You are implementing custom ASP.NET server controls. You have a base class named RotaryGaugeControl and two subclasses named CompassGaugeControl and SpeedGaugeControl. Each control requires its own client JavaScript code in order to function properly. The JavaScript includes functions that are used to create the proper HTML elements for the control. You need to ensure that the JavaScript for each of these controls that is used in an ASP.NET page is included in the generated HTML page only once, even if the ASP.NET page uses multiple instances of the given control. What should you do?
Options
- APlace the JavaScript in a file named controls.js and add the following code line to the
- BAdd the following code line to the Page_Load method of each control, where strJavascript
- CAdd the following code line to the Page_Load method of each control, where CLASSNAME
- DAdd the following code line to the Page_Load method of each control, where CLASSNAME is
Unlock 70-515 to see the answer
You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.