单项选择题如果要求只能通过在 Microsoft Visual Studio 中进行设计而不写任何代码的情况下,下面那个数据源能用于 TreeView Web 服务器控件的数据源?()

A.Site Map
B.SQL Server database
C.XML File
D.Microsoft Access database
E. File system


您可能感兴趣的试卷

你可能感兴趣的试题

2.多项选择题你将为 Web 应用创建一个控件 ContosoUI。你需要增加这个控件到 Microsoft Visual Studio .NET 的工具栏中,你应该通过下面那两个操作完成?()

A.创建ContosoUI控件为Web控件库。
B.创建ContosoUI控件为Web用户控件。
C.在VisualStudio.NET工具栏中,浏览并选择ContosoUI.ascx。
D.在VisualStudio.NET工具栏中,浏览并选择ContosoUI.dll。

3.单项选择题你在开发一个Web控件。这个Web控件由label控件和相关联的文本框控件组成。你需要报证Web控件能够放入Visual Studio工具栏并且能够可视化的设计,你应该如何做?()

A.为你的解决方案增加一个Web控件库项目;定义一个从CompositeControl继承的类。
B.为你的解决方案增加一个Windows控件库项目;定义一个从UserControl继承的类。
C.为你的解决方案增加一个Web用户控件项目;定义一个从UserControl继承的类。
D.为你的解决方案增加一个移动Web用户控件项目;定义一个从MobileUserControl继承的类。

4.多项选择题你创建了一个 Web 应用。你需要对一个运行不是很好的页面进行跟踪。而且你必须把跟踪信息存储在一个数据库中。为此,你应该通过下面那两个步骤完成?()

A.为Trace.TraceFinished事件增加跟踪内容事件处理程序,并且把跟踪信息记录到数据库中。
B.在Web.config文件中增加system.diagnostics配置节,然后在新的节增加一个listener。
C.使用System.Diagnostics.Trace对象连接到数据库,并且插入跟踪记录到数据库。
D.在Page_Load事件中,使用Trace.Write插入信息到数据库。

5.单项选择题你正在部署一个公司的Internet Web站点。你需要拒绝匿名用户访问,并且只允许已验证的用户访问。你应该使用下面那个代码段?()

A. <authorization> <allow users="?"/> </authorization>
B. <authorization> <deny users="?"/> </authorization>
C. <authorization> <deny users="*"/></authorization>
D. <authorization> <allow users="*"/> </authorization>

6.单项选择题你正在开发一个 Web 应用。依据用户身份的不同,你在代码中限制了某些用户对某些页面的访问。你需要配置 IIS,让你的 Web 应用支持 Windows 身份认证,你应该如何做?()

A.启用匿名身份认证和集成Windows身份认证。
B.启用匿名身份认证。启用基本身份认证。
C.禁用匿名身份认证;启用集成Windows身份认证。
D.禁用匿名身份认证;启用基本身份认证.

8.单项选择题你创建了一个管理项目文档的 intranet Web 站点。你需要所有用户都可以浏览站点的文档,但是只有 administrators 组的成员可以上传文档。你应该使用下面那个代码段来配置Web.config 文件?()

A. <allow verbs="GET" users="*" /><deny verbs="POST" users="*" /><allow verbs="POST"roles="Administrators" />
B. <allow role s="Administrators" /><deny users="*" />
C. <allow users="Administrators" /><allow users="*" />
D. <allow verbs ="POST" roles="Administrators" /><deny verbs="POST" users="*" /><allow verbs="GET" users="*" />


9.单项选择题你正在创建一个生成 XML 文档的 ASP.NET Web 应用。你需要为文档增加一个 XML 声明。下面那个代码能够生成如下的 XML 声明?()

A.XmlDocument doc = new XmlDocument();doc.Load("subscribers.xml");XmlDeclaration xmldecl = doc.CreateXmlDeclaration("encoding", "Unicode");
B.XmlDocument doc = new XmlDocument();doc.Load("subscribers.xml"); XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", null, "yes");
C.XmlDocument doc = new XmlDocument(); doc.Load("subscribers.xml"); XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", "Unicode", "yes");
D.XmlDocument doc = new XmlDocument(); doc.Load("subscribers.xml"); XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", "Unicode");


10.单项选择题你创建了一个使用membership 和personalization的Web站点。你必须使用一个已有的CRM数据库来存储成员资格(membership)数据.为此你需要实现成员资格提供程序(Membership Provider)。请问,你应该如何做?()

A.修改Web.config中连接到CRM数据库的连接字符串。
B.在Web.config文件中增加一个新的SqlMembership Provider。
C.创建一个从Membership Provider继承的自定义Membership Provider。
D.创建一个从Membership User继承的自定义Membership Membership User。

最新试题

You create a Web Form. The Web Form allows users to calculate values and display the results in a label named lblResults. You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form.Which code segment should you use?()

题型:单项选择题

You create a Web site for a customer. You need to deploy the Web site to the customers server without any of the source files for the Web site. You do not want the customer to be able to update any of the static pages on the Web site.Which tool should you use?()

题型:单项选择题

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?()

题型:单项选择题

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?()

题型:多项选择题

You create a Web site that is for members only. The behavior of the Web site changes according to the role of the user. The Web site uses the ASP.NET Membership control for creation of user accounts. You need to find out whether a user is a member of a particular role.What should you do?()

题型:单项选择题

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? ()

题型:单项选择题

You create an intranet Web site for management of project documents. You need to enable all users to browse documents on the site. Only members of the administrators group must be ble to upload files.Which code segment of the Web.config file should you use?()

题型:单项选择题

You deploy your companys Internet Web site. You need to deny anonymous access to the Web site, allowing only authenticated users. Which code segment should you use?()

题型:单项选择题

You want to enable users of a Web application to modify the Web application's UI and behavior. These modifications must be maintained at the user level so that when users return to the Web application, the changes are still in effect. You need to achieve this goal by using the minimum amount of custom code.What should you do?()

题型:单项选择题

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?()

题型:多项选择题