1. Question: Which of the following lines of JavaScript registers a new class to be used as an extension to a DOM element?

    A
    MyNamespace.MyClass.registerClass('MyNamespace.MyClass ', Sys.UI.Control);

    B
    MyNamespace.MyClass.registerClass('MyNamespace.MyClass ', null, Sys.IDisposable);

    C
    MyNamespace.MyClass.registerClass('MyNamespace.MyClass ', null);

    D
    MyNamespace.MyClass.registerClass('MyNamespace.MyClass ', Sys.UI.Behavior);

    Note: Not available
    1. Report
  2. Question: You are creating an AJAX component that does an asynchronous postback to the server for partial-page updates. You need your code to be notified when the partialpage response first comes back from the server. Which event should you intercept?

    A
    endRequest

    B
    pageLoading

    C
    pageLoaded

    D
    beginRequest

    Note: Not available
    1. Report
  3. Question: You write a JavaScript class that uses the Microsoft AJAX Library. You intend to use the class on a webpage. Which of the following actions should you take?

    A
    Add the following markup to the <head /> section of the ASPX page.
    <script src="ContosoUtilities.js" type="text/javascript"></script>

    B
    Add a ScriptManager control to your page. It automatically finds your .js files in your solution. You can then work with them by using IntelliSense.

    C
    Add a ScriptManager control to your page. Add a reference nested inside the ScriptManager control that points to your JavaScript file.

    D
    Use the ScriptReference class in your code-behind file and set its path to the path of your .js file.

    Note: Not available
    1. Report
  4. Question: You want to create a custom control that works as an AJAX client behavior. What action(s) should you take? (Choose all that apply.)

    A
    Create a custom server-side class that inherits from a valid System.Web.UI.Control.

    B
    Create a custom server-side class that inherits from ExtenderControl.

    C
    Create a custom server-side class that implements the interface IScriptControl.

    D
    Create a custom server-side class that is decorated with the attribute TargetControlType.

    Note: Not available
    1. Report
  5. Question: You want to execute a function after the DOM has loaded. This function should bind an event code to be run when the user presses a key on the keyboard inside a text box control with the textBox1 ID. Which steps should you take? (Choose all that apply.)

    A
    Bind to the keyPress event by using the following code. $("#textBox1").bind("keyPress", ())

    B
    Add your event binding code to the $(document).ready() event at the top of your script.

    C
    Add your event binding code to the $(document).load() event at the top of your script.

    D
    Bind to the keyPress event by using the following code. $("#textBox1").add("keyPress", ()).

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd