1. Question: To add an HTML server control to a webpage, you must drag an HTML element from the Toolbox to the webpage and then perform which of the following tasks?

    A
    Add the attribute run="server" to the control element in Source view.

    B
    Double-click the HTML element to convert it to an HTML server control.

    C
    Add the attribute runat="server" to the control element in Source view.

    D
    Select the HTML element in Design view and set the RunAt property to true in the Properties window.

    Note: Not available
    1. Report
  2. Question: You are creating a web form that displays a stock chart. Users can choose from three different sizes for the chart: small, medium, and large. How could you implement the user interface? (Choose all that apply. Each answer forms a complete solution.)

    A
    Add a RadioButtonList control.

    B
    Add three RadioButton controls. Set the GroupName property of all controls to ChartSize.

    C
    Add a CheckBoxList control.

    D
    Add three CheckBox controls. Set the GroupName property of all controls to ChartSize.

    Note: Not available
    1. Report
  3. Question: You are creating a webpage that has several related buttons, such as Fast Forward, Reverse, Play, Stop, and Pause. You want to create a single event handler that processes the postback from these Button controls. Which of the following should you do to handle the event while writing the least amount of code? (Choose all that apply. Each answer forms part of the complete solution.)

    A
    Handle the Button.Command event.

    B
    Handle the Button.Load event.

    C
    Define the Button.CommandName property of all controls to PlaybackControl.

    D
    Define the Button.CommandName property so that each control has a unique value.

    Note: Not available
    1. Report
  4. Question: Which of the following represents the best use of the Table, TableRow, and TableCell controls?

    A
    Creating and populating a table in Design view

    B
    Displaying data from a collection in a grid format

    C
    Creating a table of static images stored in a folder on your site

    D
    Providing layout for dynamically generated controls

    Note: Not available
    1. Report
  5. Question: Your graphics department just completed an elaborate image that shows the product lines that your company sells. Some of the product line graphics are circular, others are rectangular, and others are complex shapes. You want to use this image as a menu on your website. What is the best way to incorporate the image into your website?

    A
    Use ImageButton and use the x-coordinate and y-coordinate that are returned when the user clicks to figure out what product line the user clicked.

    B
    Use the Table, TableRow, and TableCell controls, break the image into pieces that are displayed in the cells, and use the TableCell control’s Click event to identify the product line that was clicked.

    C
    Use the MultiView control and break up the image into pieces that can be displayed in each View control for each product line. Use the Click event of the View to identify the product line that was clicked.

    D
    Use an ImageMap control and define hot spot areas for each of the product lines. Use the PostBackValue to identify the product line that was clicked.

    Note: Not available
    1. Report
  6. Question: You are creating a website that collects a lot of data from your users. The data collection spreads over multiple webpages. When the user reaches the last page, you need to gather all of the data, validate it, and save it to the database. You notice that it can be rather difficult to gather the data that is spread over multiple pages, and you want to simplify the development of this application. What control should you use to solve this problem?

    A
    The View control

    B
    The TextBox control

    C
    The Wizard control

    D
    The Panel control

    Note: Not available
    1. Report
  7. Question: You need to validate a vendor ID entered by a user. The valid vendor IDs exist in a database table. How can you validate this input?

    A
    Provide a RegularExpressionValidator control and set the ValidationExpression property to /DbLookup{code}.

    B
    Provide a RangeValidator control, and set the MinValue property to DbLookup(code) and the MaxVaue property to DbLookup(code).

    C
    Provide a CustomValidator control with server-side code to search the database for the code.

    D
    Provide a CompareValidator control and set the compare expression to the name of a server-side function that performs a database lookup of the code.

    Note: Not available
    1. Report
  8. Question: You have created a webpage that contains many controls that are validated by using validation controls. This page also contains Button controls that perform postbacks. You disabled all of the client-side validation and noticed that when you clicked any of the Button controls, the code in the Click event handler was executing even when some of the controls did not have valid data. How can you best solve this problem to ensure that code is not executed when invalid data exists?

    A
    In the Click event handler method for each of your Button controls, test the webpage’s IsValid property and exit the method if this property is false.

    B
    In the Load event handler method of the webpage, test the webpage’s IsValid property and exit the method if this property is false.

    C
    Re-enable the client-side script to disable postback until valid data exists.

    D
    Add the runat="server" attribute to all of the validation controls.

    Note: Not available
    1. Report
  9. Question: You have created an elaborate webpage that contains many validated controls. You want to provide a detailed message for each validation error, but you don’t have space to provide the detailed message next to each control. What can you do to indicate an error at the control and list the detailed error messages at the top of the webpage?

    A
    Set the Text property of the validator control to the detailed message and set the ErrorMessage property to an asterisk. Place a ValidationSummary control at the top of the webpage.

    B
    Set the ErrorMessage property of the validator control to the detailed message and set the Text property to an asterisk. Place a ValidationSummary control at the top of the webpage.

    C
    Set the ToolTip property of the validator control to the detailed message and set the ErrorMessage property to an asterisk. Place a ValidationSummary control at the top of the webpage.

    D
    Set the ToolTip property of the validator control to the detailed message and set the Text property to an asterisk. Place a ValidationSummary control at the top of the webpage.

    Note: Not available
    1. Report
  10. Question: Which of the following server-side methods of the HttpServerUtility class can be used to navigate to a different webpage without requiring a round trip to the client?

    A
    Redirect

    B
    MapPath

    C
    Transfer

    D
    UrlDecode

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