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

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


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题你创建了一个管理项目文档的 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="*" />


3.单项选择题你正在创建一个生成 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");


4.单项选择题你创建了一个使用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。

5.多项选择题你创建了一个Web页面。这个Web页面允许用户找回他们的密码。你通过如下代码段为你的页面增加了PasswordRecovery控件:。你需要保证这个服务器控件能够产生一个新的密码并且发送到用户指定的邮箱。你应该通过下面哪两个步骤完成?()

A. 在Web.config文件创建一个有效的定义。
B. 设置成员提供程序的passwordFormat属性为 Encrypted 。
C. 确保已配置的成员提供程序的enablePasswordRetrieval 属性设置为False。
D. 确保已配置的成员提供程序的enablePasswordRetrieval 属性设置为True。

6.多项选择题你正在创建一个自定义用户控件。这个控件将被用在允许用户注册和个性化体验的 Web 站点中的 10 个 Web 窗体。自定义用户控件中包含两个 TextBox 控件和两个 Button 控件。你需要保证只有在用户没有登录到 Web 站点时控件是可见的,反之是不可见的。你也需要保证Web 站点的开发和维护的工作量最小。你应该通过下面那两个操作来达到此目的?()

A.在自定义控件代码中为Login按钮增加事件处理代码。
B.在自定义控件所在的Web窗体代码中为Login按钮增加事件处理代码。
C.在自定义控件所在的Web窗体的Page_Load方法中增加代码段去设置TextBox和Button控件的可见性。
D.在自定义控件的Page_Load方法中增加代码段去设置TextBox和Button控件的可见性。

7.多项选择题你正在开发一个显示产品信息的 Web 应用。你的 Web 应用的不同页面上都会显示产品信息。为此,你需要开发一个用于产品信息显示的用户控件,并且需要为控件实现一个默认的用户界面。另外,你的控件需要为开发者提供可自定义的界面布局的功能。为了达到这个目的,你应该通过下面哪三步操作完成?()

A. 为类型为Itemplate的属性声明一个属性TemplateContainerAttribute。并且传递模板的命名 容器类型作为参数。
B. 为用户控件的类定义声明属性TemplateContainerAttribute 。
C. 在用户控件的code-behind 类中实现一个类型为INamingContainer 的属性。
D. 在用户控件的code-behind 类中实现一个类型为ITemplate的属性。
E. 定义一个从ITemplate 继承的新类。实现ITemplate 接口的InstantiateIn 方法。

8.单项选择题你正在创建一个将包含几个子控件的自定义控件,你应该从下面那个类继承?()

A.DetailsView
B.ObjectDataSource
C.Content
D.CompositeControl

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

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

10.单项选择题你正在创建一个 Web 应用。你在 Web.config 文件中增加了如下的配置: 请问,你在代码中如何引用连接字符串?()

A.ConfigurationManager.ConnectionStrings.MyDB
B.ConfigurationManager.ConnectionStrings.System.Data.SqlClient
C.ConfigurationManager.ConnectionStrings[";MyDB";]
D.ConfigurationManager.ConnectionStrings[";System.Data.SqlClient";]

最新试题

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

题型:单项选择题

You create a large, n-tier Web application that has a custom event tracking system. You need to create a custom event type that enables your event tracking system to record all relevant event details for all types of events. The events must be stored in Microsoft SQL Server.From which base type should your custom event type inherit? ()

题型:单项选择题

You create a Web site. The Web site has many predefined roles and associated users that will be used for security purposes. You need to manage these roles and user accounts.Which tool 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 need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending.Which two actions should you perform?()

题型:多项选择题

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 create Web sites for your company. You apply a consistent design to the pages and controls of the Web sites. You need to make style changes to all of the Web sites on the Web server. You want to achieve this goal without having to edit the individual pages on each Web site.Which two actions should you perform?()

题型:多项选择题

You are using the ASP.NET membership APIs to manage user accounts for a Web site. The Web.config file contains the definition for the membership provider. After modifying the Web.config file to enable password recovery, you create a PasswordReset.aspx file.? You need to enable users to reset their passwords online. The new passwords must be sent to them by e-mail after they have logged on through the Login.aspx page. In addition, users must be required to answer their secret questions before resetting their passwords.Which code logic should you use?()

题型:单项选择题

You have a Web application that is configured for personalization. You need to access personalization data from one of the pages of the Web application by using the minimum amount of administrative effort.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?()

题型:单项选择题