护理学章节练习

单选题You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do? ()A Ensure that the Web control inherits from t

题目
单选题
You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do? ()
A

Ensure that the Web control inherits from the WebControl class.

B

Ensure that the Web control inherits from the Control class.

C

Ensure that the Web control inherits from the CompositeControl class.

D

Ensure that the Web control inherits from the UserControl class.

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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 host the Web application in Microsoft Internet Information Services (IIS) 6.0. You browse theapplication and receive the following error message:  Server Application Unavailable  The web application you are attempting to access on this web server is currently unavailable.Please hit the "Refresh" button in your web browser to retry your request.  You view the Application event log and discover the following message:  It is not possible to run two different versions of ASP.NET in the same IIS process. Please use theIIS Administration Tool to reconfigure your server to run the application in a separate process.  To ensure productivity you need to solve this problem as quick as possible.  What should you do?()

  • A、You should change the IIS isolation mode.
  • B、You should assign the application to another application pool.
  • C、You should configure all applications that are part of your application's application pool in orderto use the same version of ASP.NET.
  • D、You should run the Aspnet_regiis.exe Tool.
  • E、You should restart the application pool that hosts the application.

正确答案:B,C

第2题:

You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()

  • A、Ensure that the Web control inherits from the WebControl class.
  • B、Ensure that the Web control inherits from the Control class.
  • C、Ensure that the Web control inherits from the CompositeControl class.
  • D、Ensure that the Web control inherits from the UserControl class.

正确答案:D

第3题:

You develop a Web control. The Web control consists of labels and associated text boxes.You need to ensure that the Web control has both toolbox and visual designer support. What should you do?()

A. Add a Web Control Library project to your solution. Define a class that inherits from CompositeControl.

B. Add a Windows Control Library project to your solution. Define a class that inherits from UserControl.

C. Add a Web User Control to your project. Define a class that inherits from UserControl.

D. Add a Mobile Web User Control to your project. Define a class that inherits from MobileUserControl.


参考答案:A

第4题:

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform.  You are creating an ASP.NET Web application using .NET Framework 4.0. The Web application comprises a class named Employee with properties named as First Name, Last Name, and Age. You add a Web page in which you get a list of Employee objects and display those objects in a GridView control. You are required to add code so that the GridView row is highlighted in red color if the age of the employee is less than 21 years.  What will you do to accomplish this?()

  • A、Use the RowCommand event of the GridView control.
  • B、Use the SelectedlndexChanged event of the GridView control.
  • C、Use the RowDataBound event of the GridView control.
  • D、Use the RowEditing event of the GridView control.
  • E、Use the RowUpdated event of the GridView control.

正确答案:C

第5题:

You create a Web server control named ContosoControls. You add a Web custom control named ContosoMailer to it. You then distribute the Web Control Library files to your team. You need to provide your team with the correct procedure for adding the Web Control Library to the items in the toolbox of Microsoft Visual Studio .NET. Which procedure should you provide to the team?()

  • A、Within the toolbox, click Choose Items and then browse to and select the ContosoControls user control.
  • B、Within the toolbox, click Choose Items and then browse to and select the ContosoMailer user control.
  • C、Right-click Web Project, click Add Reference, and then browse to and select the ContosoControls.dll file.
  • D、Within the toolbox, click Choose Items and then browse to and select the ContosoControls.dll file.

正确答案:D

第6题:

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"/>

正确答案:C

第7题:

You copy a Web site from a development site to a staging site. You do not have the Web site in a source control application. Another developer begins to fix bugs on the staging site while the development team adds features on the development site. You need to synchronize the development site and the staging site and copy the latest version of each file to both locations. What should you do? ()

  • A、Use the Copy Web tool.
  • B、Create a Web Setup project.
  • C、Use the Publish Web tool.
  • D、Use the command line to XCOPY the files.

正确答案:A

第8题:

You are creating a mobile Web Form that dynamically displays news items. You want to display news items by using an instance of a mobile TextView control named TextViewNews. You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination in casea users device does not display the full text of a news item.Which code segment should you use? ()

A.

B.

C.

D.


参考答案:D

第9题:

You create a mobile Web application. You need to use a Command control to post user input from the UI elements back to the server. What are two possible ways to achieve this goal?()

  • A、Place the Command control within an instance of the System.Web.UI.MobileControls.SelectionList control.
  • B、Place the Command control within an instance of the System.Web.UI.MobileControls.ObjectList control.
  • C、Place the Command control within an instance of the System.Web.UI.MobileControls.Form control.
  • D、Place the Command control within an instance of the System.Web.UI.MobileControls.Panel control.

正确答案:C,D

第10题:

You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web site. The following XML defines the site map for your site. You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section. Which three actions should you perform?()

  • A、Add a SiteMapDataSource control to the Web Form and bind the TreeView control to it.
  • B、Add a SiteMapPath control to the Web Form and bind the TreeView control to it.
  • C、Embed the site map XML within the SiteMap node of a Web.sitemap file.
  • D、Embed the site map XML within the AppSettings node of a Web.config file.
  • E、Set the StartingNodeUrl property of the SiteMapDataSource control to ~/Marketing.aspx.
  • F、Set the SkipLinkText property of the SiteMapPath control to Sales.

正确答案:A,C,E

更多相关问题