1. Question: You want to implement custom business logic that should run when the InvoiceNumber property is modified. What actions should you take? (Choose all that apply.)

    A
    Add a CustomValidator control to the DynamicData/FieldTemplates/Integer_Edit.asax file. Set this control to process custom logic to validate an invoice number.

    B
    Extend the OnInvoiceNumberChanged partial method inside the Invoice partial class to include additional validation logic.

    C
    Extend the OnInvoiceNumberChanging partial method inside the Invoice partial class to include additional validation logic.

    D
    If the logic fails, throw a ValidationException instance.

    Note: Not available
    1. Report
  2. Question: Which of the following Web.config files correctly enables the website to track the age of anonymous users in a variable of type Int32?

    A
    <anonymousIdentification enabled="true" />
    <profile>
         <properties>
             <add name="Age" type="System.Int32" allowAnonymous="true" />
         </properties>
    </profile>

    B
    <anonymousIdentification enabled="true" />
    <profile>
        <properties>
           <add name="Age" allowAnonymous="true" />
        </properties>
    </profile>

    C
    <anonymousIdentification enabled="true" />
    <profile>
       <properties>
           <add name="Age" type="System.Int32" />
       </properties>
    </profile>

    D
    <profile>
       <properties>
          <add name="Age" type="System.Int32" />
       </properties>
    </profile>

    Note: Not available
    1. Report
  3. Question: You want to create a user profile that uses a custom type as one of the profile properties. What actions must you take? (Choose all that apply.)

    A
    Mark your class as serializable.

    B
    Set the type attribute of the profile property to the fully qualified name of your custom type.

    C
    Add the group element to your profile property. Add one element to the group element for each property in your custom type. Set each element’s name to match that of a property in your custom type.

    D
    Add your custom type in the Machine.config file in the <customTypes> element.

    Note: Not available
    1. Report
  4. Question: Which of the following controls provides a link for unauthenticated users to log on?

    A
    Login

    B
    LoginView

    C
    LoginStatus

    D
    LoginName

    Note: Not available
    1. Report
  5. Question: You are creating a web form that enables users to log on to your website. Which of the following ASP.NET controls should you add to the page? (Choose two answers.)

    A
    Login

    B
    CreateUserWizard

    C
    LoginName

    D
    PasswordRecovery

    Note: Not available
    1. Report
  6. Question: You have created an ASP.NET web form that enables users to create accounts with a CreateUserWizard control. After a new user creates an account, you want to redirect the user to a page listing the rules for your website. To which of the following events should you respond?

    A
    CreateUserWizard.Unload

    B
    CreateUserWizard.ContinueButtonClick

    C
    CreateUserWizard.CreatedUser

    D
    CreateUserWizard.Init

    Note: Not available
    1. Report
  7. Question: Which of the following Web.config segments correctly requires that all users be authenticated by using a Windows user account?

    A
    <authentication mode="Windows" /> <authorization> <deny users="*" /> </authorization>

    B
    <authentication mode="Windows" /> <authorization> <allow users="*" /> </authorization>

    C
    <authentication mode="Windows" /> <authorization> <deny users="?" /> </authorization>

    D
    <authentication mode="Windows" /> <authorization> <allow users="?" /> </authorization>

    Note: Not available
    1. Report
  8. Question: Given the following Web.config file, what permissions do users have to the Marketing folder?
    <configuration>
       <system.web>
            <authentication mode="Windows" />
            <authorization>
               <deny users="?" />
            </authorization>
       </system.web>
       <location path="Marketing">
       <system.web>
           <authorization>
              <allow roles="FABRIKAM\Marketing" />
              <deny users="*" />
           </authorization>
        </system.web>
      </location>
    </configuration>

    A
    Authenticated users and members of the FABRIKAM\Marketing group have access. All other users are denied access.

    B
    Members of the FABRIKAM\Marketing group have access. All other users are denied access.

    C
    All users, authenticated and unauthenticated, have access.

    D
    All users are denied access.

    Note: Not available
    1. Report
  9. Question: You are configuring NTFS file permissions for a website with the following Web.config file:
    <configuration>
       <system.web>
          <authentication mode="Windows" />
          <authorization>
    	<deny users="?" />
          </authorization>
       </system.web>
       <location path="Marketing">
         <system.web>
             <authorization>
                <allow roles="FABRIKAM\Marketing" />
                <deny users="*" />
              </authorization>
         </system.web>
       </location>
    </configuration>
    For the Marketing folder, you remove all file permissions, and then grant read access to the FABRIKAM\John and FABRIKAM\Sam user accounts. John is a member of the FABRIKAM\Domain Users and FABRIKAM\Marketing groups. Sam is only a member of the FABRIKAM\Domain Users group. Which of the following users can access web forms located in the Marketing folder?

    A
    Unauthenticated users

    B
    Authenticated users

    C
    Members of the FABRIKAM\Domain Users group

    D
    FABRIKAM\John

    E
    FABRIKAM\Sam

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