You are developing a Web control. The Web control captures user address information in a Web application. You create a class named AddressControl that inherits from CompositeControl. This control consists of child controls.You need to ensure that the chi

题目

You are developing a Web control. The Web control captures user address information in a Web application. You create a class named AddressControl that inherits from CompositeControl. This control consists of child controls.You need to ensure that the child controls are properly output to the browser.Developers using your control must be able to set the appropriate text for labels. In addition, they must be able to pull user address information from the associated text boxes during postback. What should you do?()

  • A、Override the EnsureChildControls method of the base class. Add the child controls to the base container.
  • B、Override the CreateControlCollection method of the base class. Add the child controls to the ControlCollection class
  • C、Override the CreateChildControls method of the base class. Add the child controls to the base container.
  • D、Override the DataBindChildren method of the base class. Add the child controls to the ControlCollection class.

相似考题
更多“You are developing a Web contro”相关问题
  • 第1题:

    You are developing an ASP.NET application by using Visual Studio 2010. You need to interactively debug the entire application. Which two actions should you perform? ()

    • A、Set the Debug attribute of the compilation node of the web.config file to true.
    • B、Add a DebuggerDisplay attribute to the code-behind file of the page that you want to debug.
    • C、Select the ASP.NET debugger option in the project properties.
    • D、Define the DEBUG constant in the project settings.

    正确答案:A,C

  • 第2题:

    You are developing a web service that will run on a single instance of a Windows Azure worker role.  When interacting with external clients during the testing phase, the service encounters errors that may be related to the format of the HTTP payload.  You need to recommend an approach that allows developers to monitor the service‟s HTTP traffic in real-time.  What should you recommend?()

    • A、 Enable Remote Desktop Protocol (RDP) on the worker role.
    • B、 Use the Windows Azure Diagnostics API to download the IIS logs.
    • C、 Add an endpoint to the worker role to accept HTTPS connections on port 443.
    • D、 Change the service to a run in a Windows Azure web role.

    正确答案:A

  • 第3题:

    You are developing an ASP.NET Web page. The page includes a List instance. You add a FormView control to display a single Product from this list. You need to bind the list to the FormView control. Which FormView property should you set in the code-behind file?()

    • A、DataSource
    • B、DataSourceID
    • C、DataKeyNames
    • D、DataMember

    正确答案:A

  • 第4题:

    You are developing an ASP.NET Web page. You add a data-bound GridView control. The GridView contains a TemplateField that includes a DropDownList. You set the GridViews ClientIDMode property to Static, and you set the ClientIDRowSuffix property to ProductID. You need to be able to reference individual DropDownList controls from client-side script by using the ProductID. What should you set the ClientIDMode property of the DropDownList to? ()

    • A、AutoID
    • B、Static
    • C、Inherit
    • D、Predictable

    正确答案:D

  • 第5题:

    You are developing an ASP.NET Web page that will display the median value from a sequence of integer values. You need to create an extension method to compute the median value. Which interface should you add the extension method to?()

    • A、 IComparer<T>
    • B、 IEnumerable<T>
    • C、 IEnumerator<T>  
    • D、 IEqualityComparer<T>

    正确答案:B

  • 第6题:

    You are developing and XBAP application for your company intranet. During several development iterations, you manually executable, application, and deployement manifest to the test Web Server. You create an HTML file that has a manifest that you use for testing. During the next iteration, you enchance the XBAP application by making changes. When you use the hyperlink to the deployment manifest to test the deployment, you do not see the changes. You need to ensure that the changes you make are visible when you test the deployment from your machine. What should you do ?()

    • A、 Restart Microsoft Internet Information Services (IIS). Then click the Install hyperlink again.
    • B、 Open Visual Studio command prompt and run mage -cc. Then click the Install hyperlink again.
    • C、 Delete the application, deployment, and executable files from Web Server. Then rebuild the XBAP solution files from the project bin directory to the Web Server and click the Install hyperlink again
    • D、 Delete the application, deployment, and executable files from Web Server. Then recopy the same files to the Web Server, restart IIS and click the Install hyperlink again

    正确答案:C

  • 第7题:

    单选题
    You are developing a Web application. Your code restricts access to some pages based on the users credentials. You need to configure IIS to supply the user's Windows credentials to your Web application. These credentials must be encrypted. What should you do? ()
    A

    Enable Anonymous access. Enable Integrated Windows authentication.

    B

    Enable Anonymous access. Enable Basic authentication.

    C

    Disable Anonymous access. Enable Integrated Windows authentication.

    D

    Disable Anonymous access. Enable Basic authentication.


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

  • 第8题:

    单选题
    You are a help desk technician for your company. Stefan and Irene are software developers for the company. Stefan is developing a Web application on his Windows XP Professional computer. The computer is named Stefan132.  All client computers use Microsoft Internet Explorer 6. 0 or later as their Web browser. When Irene types http://Stefan132 in the Address bar of her Web browser, she cannot access the Web application. However, Stefan can access the Web application by typing http://localhost or http://Stefan132 in the Address bar of his Web browser. He can also access resources on the company network. When you run the Ping command on your computer, you cannot connect to Stefan’s computer. When you attempt to access http://Stefan132 from your computer, Internet Explorer displays “DNS or Server Error.” You need to ensure that Irene can access the Web application on Stefan’s computer. First, you establish a Remote Assistance connection to Stefan’s computer. What should you do next on Stefan’s computer?()
    A

    Run the IPconfig /renew command. 

    B

    Stop and then restart the World Wide Web Publishing service. 

    C

    Ensure that the Everyone group has Allow - Full Control permission on the Inetpub folder. 

    D

    In the properties of the Local Area Connection connection, allow a Windows Firewall exception for port 80.


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

  • 第9题:

    单选题
    You are developing a Windows Presentation Foundation (WPF) application. You need to display HTML content from a Web Page on the WPF form. What should you do?()
    A

     Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.

    B

     Add a ContentControl control to the design surface. The reference a WebClient object to return an HTML string.

    C

     Add a DocumentViewer control to the design surface. The create a FixedDocument control.


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

  • 第10题:

    单选题
    You are developing an ASP.NET Dynamic Data Web application. Boolean fields must display as Yes or No instead of as a check box. You replace the markup in the default Boolean field template with the following markup.You need to implement the code that displays Yes or No. Which method of the FieldTemplateUserControl class should you override in the BooleanField class?()
    A

    OnLoad

    B

    Construct

    C

    OnDataBinding

    D

    SaveControlState


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

  • 第11题:

    单选题
    You are developing an ASP.NET MVC 2 Web application. A page makes an AJAX request and expects a list of company names in the following format. ["Adventure Works","Contoso"] You need to write an action method that returns the response in the correct format. Which type should you return from the action method?()
    A

    AjaxHelper

    B

    XDocument

    C

    JsonResult

    D

    DataContractJsonSerializer


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

  • 第12题:

    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

  • 第13题:

    You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form. You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()

    • A、Include a data source identified as "WebPartConnection1" on the Web Form.
    • B、Include a Web Part identified as "customerPart" on the Web Form.
    • C、Include a Web Part identified as "ordersPart" on the Web Form.
    • D、Ensure that you declare an interface named "IOrdersPart".
    • E、Ensure that you declare an interface named "ICustomerPart".
    • F、Ensure that each Web Part declares either a GetInterface or ProvideInterface method.

    正确答案:B,C

  • 第14题:

    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

  • 第15题:

    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

  • 第16题:

    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

  • 第17题:

    多选题
    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
    解析: 暂无解析

  • 第18题:

    多选题
    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
    解析: 暂无解析

  • 第19题:

    单选题
    You are developing an ASP.NET Web page that will display the median value from a sequence of integer values. You need to create an extension method to compute the median value. Which interface should you add the extension method to?()
    A

     IComparer<T>

    B

     IEnumerable<T>

    C

     IEnumerator<T>  

    D

     IEqualityComparer<T>


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

  • 第20题:

    单选题
    A webmaster is responsible ______ developing and maintaining the Web site belonging to an organization or company.
    A

    on

    B

    about

    C

    for

    D

    to


    正确答案: C
    解析:
    句意:网站管理员负责开发和维修一个组织机构或公司的网站。be responsible for sth对某事负责(be responsible for passengers’ safety为旅客的安全负责);be responsible to sb对某人负责,向某人负责(e.g. be responsible to the people向人民负责);responsible不与on, about搭配。

  • 第21题:

    单选题
    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
    解析: 暂无解析