1. 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
  2. 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
  3. 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
  4. 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
  5. Question: Which control automatically uses the Web.sitemap file to display site map information to a user on a webpage?

    A
    Menu

    B
    TreeView

    C
    SiteMapDataSource

    D
    SiteMapPath

    Note: Not available
    1. Report
  6. Question: You want to provide an Up button for your webpages that users can click to navigate one level higher on your website. You want to define the hyperlink programmatically by using the site map. Which class can you use to access the site map content to accomplish this?

    A
    SiteMapPath

    B
    SiteMapDataSource

    C
    SiteMap

    D
    HttpServerUtility

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