You are developing a page named Products.aspx in a Web application that contains three DropDownList controls that are dynamically loaded from a SQL Server 2005 database file. The DropDownList controls represent a vendor list, a certification list, and an

题目

You are developing a page named Products.aspx in a Web application that contains three DropDownList controls that are dynamically loaded from a SQL Server 2005 database file. The DropDownList controls represent a vendor list, a certification list, and an exam list. Certkiller .com customers use the Products.aspx page to select exams related to particular certifications on offer from a particular vendor. A Go button initiates the selection. Each DropDownList control has an associated RequiredFieldValidator control.Whenever the customer selects a vendor, and the vendor offers certifications, then the customer must also select a certification if the. If the vendor only offers exams and not certifications, the certification list should remain hidden. Whenever the customer selects a certification, the customer must also select an exam. Validation error messages should only be displayed when the Go button is clicked. You need to set properties on the vendor DropDownList control.

What should you do?()


相似考题
参考答案和解析
参考答案:A
更多“You are developing a page named Products.aspx in a Web application that contains three Dro ”相关问题
  • 第1题:

    You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do? ()

    • A、Set Page.MasterPageFile in the Page's Page_Init event.
    • B、Set Page.MasterPageFile in the Page's OnInit event.
    • C、Set Page.MasterPageFile in the Page's Page_Load event.
    • D、Set Page.MasterPageFile in the Page's Page_PreInit event.

    正确答案:D

  • 第2题:

    You are developing a page named Process.aspx in a shopping cart Web application that will be integrated into Certkiller .com's existing e-Commerce Web site. The Process.aspx page allows customers to pay for purchases using their credit cards. The Process.aspx page contains a Button control that confirms the customer's payment and calls an external Web service that charges the customer's credit card. You must implement confirmation and prevent postback unless the customer confirms payment. What should you do?()

    • A、 Set the OnClientClick property to a JavaScript statement.
    • B、 Set the PostBackUrl property to a JavaScript statement.
    • C、 Set the PostBackUrl property to the URL of a confirmation page.
    • D、 Set the OnClientClick property to the URL of a confirmation page.

    正确答案:A

  • 第3题:

    You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.if (Page.User.Identity.Name != @"CONTOSO/Administrator") { the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()

    • A、In the Web.config file, enable impersonation.
    • B、In IIS, enable anonymous access.
    • C、In IIS, disable anonymous access.
    • D、In the Web.config file, set the authentication mode to Windows.

    正确答案:C,D

  • 第4题:

    You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script.  What should you recommend?()

    • A、 Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script.  Connect to the web role instance by using RDP, and then manually test the startup script.
    • B、 Deploy the application in the Windows Azure Compute Emulator.
    • C、 Deploy theapplication with a custom error page.
    • D、 Deploy the application and then use IntelliTrace.

    正确答案:A

  • 第5题:

    多选题
    You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.if (Page.User.Identity.Name != @"CONTOSO/Administrator") { the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()
    A

    In the Web.config file, enable impersonation.

    B

    In IIS, enable anonymous access.

    C

    In IIS, disable anonymous access.

    D

    In the Web.config file, set the authentication mode to Windows.


    正确答案: A,D
    解析: 暂无解析

  • 第6题:

    多选题
    You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.If Page.User.Identity.Name <> "CONTOSO/Administrator" Then Response.Redirect("login.aspx")End IfYou are logged on as Administrator. When you display the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()
    A

    In the Web.config file, enable impersonation.

    B

    In IIS, enable anonymous access.

    C

    In IIS, disable anonymous access.

    D

    In the Web.config file, set the authentication mode to Windows.


    正确答案: B,C
    解析: 暂无解析

  • 第7题:

    单选题
    You are developing an ASP.NET MVC 2 Web application. The application contains a controller named Home Controller, which has an action named Index. The application also contains a separate area named Blog. A view within the Blog area must contain an Action Link that will link to the Index action of the Home Controller. You need to ensure that the Action Link in the Blog area links to the Index action of the HomeController. Which Action Link should you use?()
    A

    Html.ActionLink(Home, Index, Home)

    B

    Html.ActionLink(Home, Index, Home,  New With {.area = }, Nothing)

    C

    Html.ActionLink(Home, Index, Home,  New With {.area = Blog}, Nothing)

    D

    Html.ActionLink(Home, Index, Home,  New With {.area = Home}, Nothing)


    正确答案: B
    解析: 暂无解析

  • 第8题:

    单选题
    You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  You create a folder named Dark in the App_Themes folder of the Web application. You also addfour skin files to this folder. You have to make sure that the controls on a page have their appearances overridden by the control definitions defined in the skin files. What should you do?  Which Page directive should you use?()
    A

    You should use the page directive: <%@ Page StyleSheetTheme=App_Themes.Dark/>

    B

    You should use the page directive: <%@ Page Theme=App_Themes.Dark/>

    C

    You should use the page directive: <%@ Page Theme=Dark/>

    D

    You should use the page directive: <%@ Page StyleSheetTheme=Dark/>


    正确答案: D
    解析: 暂无解析

  • 第9题:

    单选题
    You are developing a page named Products.aspx in a Web application that contains three DropDownList controls that are dynamically loaded from a SQL Server 2005 database file. The DropDownList controls represent a vendor list, a certification list, and an exam list. Certkiller .com customers use the Products.aspx page to select exams related to particular certifications on offer from a particular vendor. A Go button initiates the selection. Each DropDownList control has an associated RequiredFieldValidator control.Whenever the customer selects a vendor, and the vendor offers certifications, then the customer must also select a certification if the. If the vendor only offers exams and not certifications, the certification list should remain hidden. Whenever the customer selects a certification, the customer must also select an exam. Validation error messages should only be displayed when the Go button is clicked. You need to set properties on the vendor DropDownList control. What should you do?()
    A

     Set the AutoPostBack property to True and the CausesValidation property to False.

    B

     Set the AutoPostBack property to False and the CausesValidation property to True.

    C

     Set the AutoPostBack property to True and the CausesValidation property to True.

    D

     Set the AutoPostBack property to False and the CausesValidation property to False.


    正确答案: C
    解析: 暂无解析

  • 第10题:

    单选题
    You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script.  What should you recommend?()
    A

     Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script.  Connect to the web role instance by using RDP, and then manually test the startup script.

    B

     Deploy the application in the Windows Azure Compute Emulator.

    C

     Deploy the application with a custom error page.

    D

     Deploy the application and then use IntelliTrace.


    正确答案: D
    解析: 暂无解析

  • 第11题:

    You are developing a product search page named Search.aspx for Web application that will be integrated into Certkiller .com's existing e-Commerce Web site. The Search.aspx page allows customers search for products that match specific criteria. Once a product is located, you want an image of the product to be displayed. You want to use an Image control to display the image. You want to configure the Image control to display a description of the image if the image cannot be displayed in the customer's Web browser. What should you do?()

    • A、 Set the ToolTip property of the Image control.
    • B、 Set the ImageUrl property of the Image control.
    • C、 Set the AlternateText property of the Image control.
    • D、 Set the DescriptionUrl property of the Image control.

    正确答案:C

  • 第12题:

    You develop a Web application. Your application contains two settings in the Web.config file. You deploy your application to production. You need to modify the application settings in the production environment without manually editing the XML markup in the Web.config file. What should you do? ()

    • A、Modify the application settings by using the Web Site Administration Tool.
    • B、Modify the application settings by using the Visual Studio property page editor for the project.
    • C、Modify the application settings by using the resource editor.
    • D、Modify the application settings by using the Visual Studio start options editor.

    正确答案:A

  • 第13题:

    You are developing an ASP.NET Web application. You create a master page. The master page requires a region where you can add page-specific content by using theASP.NET page designer. You need to add a control to the master page to define the region. Which control should you add?()

    • A、PlaceHolder
    • B、ContentPlaceHolder
    • C、Content
    • D、Substituition

    正确答案:B

  • 第14题:

    You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?()

    • A、SetPage.MasterPageFile in the Page’sPage_Initevent.
    • B、SetPage.MasterPageFile in the Page’sOnInit event.
    • C、SetPage.MasterPageFile in the Page’sPage_Loadevent.
    • D、SetPage.MasterPageFile in the Page’sPage_PreInitevent.

    正确答案:D

  • 第15题:

    多选题
    You are implementing an ASP.NET Web application. Users will authenticate to the application with an ID. The application will allow new users to register for an account. The application will generate an ID for the user based on the users full name. You need to implement this registration functionality. Which two actions should you perform?()
    A

    Configure the SqlMembershipProvider in the web.config file.

    B

    Configure the SqlProfileProvider in the web.config file.

    C

    Create an ASP.NET page that contains a default CreateUserWizard control to create a new user account.

    D

    Create an ASP.NET page that contains a custom form that collects the user information and then uses the Membership.CreateUser method to create a new user account.


    正确答案: B,D
    解析: 暂无解析

  • 第16题:

    单选题
    You are developing an ASP.NET MVC 2 Web application. The application contains a controller named HomeController, which has an action named Index. The application also contains a separate area named Blog. A view within the Blog area must contain an ActionLink that will link to the Index action of the HomeController. You need to ensure that the ActionLink in the Blog area links to the Index action of the HomeController. Which ActionLink should you use?()
    A

    Html.ActionLink(Home, Index, Home)

    B

    Html.ActionLink(Home, Index, Home, new {area = }, null)

    C

    Html.ActionLink(Home, Index, Home, new {area = Blog}, null)

    D

    Html.ActionLink(Home, Index, Home, new {area = Home}, null)


    正确答案: A
    解析: 暂无解析

  • 第17题:

    单选题
    You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script.  What should you recommend?()
    A

     Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script.  Connect to the web role instance by using RDP, and then manually test the startup script.

    B

     Deploy the application in the Windows Azure Compute Emulator.

    C

     Deploy theapplication with a custom error page.

    D

     Deploy the application and then use IntelliTrace.


    正确答案: B
    解析: 暂无解析

  • 第18题:

    单选题
    You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?()
    A

    SetPage.MasterPageFile in the Page’sPage_Initevent.

    B

    SetPage.MasterPageFile in the Page’sOnInit event.

    C

    SetPage.MasterPageFile in the Page’sPage_Loadevent.

    D

    SetPage.MasterPageFile in the Page’sPage_PreInitevent.


    正确答案: D
    解析: 暂无解析

  • 第19题:

    多选题
    Certkiller .com's e-Commerce Web application contains a page named Products.aspx that uses data source and data-bound server controls. Customers use the server controls to search for products. The Products.aspx page does not have an associated code-behind file. You need to convert the Products.aspx page to a user control so that its functionality can be reused on other pages. What should you do?()
    A

     Move the Products.aspx page to the App_Code folder.

    B

     Create a code-behind file for the Products.aspx page.

    C

     Rename the Products.aspx page to Products.ascx.

    D

     Remove all server controls from the Products.aspx page.

    E

     Replace the Page directive with a Control directive.


    正确答案: E,A
    解析: 暂无解析