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

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


您可能感兴趣的试卷

你可能感兴趣的试题

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

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

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

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

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

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

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

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

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

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

7.单项选择题你在创建一个 Web 窗体。这个 Web 窗体允许用户计算值并在名为 lblResults 的 Label 控件中显示结果。你需要在 Web 窗体通过 Error 事件截获所有未处理的异常并显示异常在 Web 窗体上。你可以使用下面那个代码段实现?()

A. protected void Page_Error(object sender, EventArgs e) { lblResults.Text = e.ToString();e=null;}
B. protected void Page_Error(object sender, EventArgs e) { lblResults.Text =Server.GetLastError().ToStri();Server.ClearError();}
C. protected void Page_Error(object sender, EventArgs e) Response.Write(e.ToString());e=null;}
D. protected void Page_Error(object sender, EventArgs e) Response.Write(Server.GetLastError().ToString()); Server.ClearError();}

8.单项选择题你的 Web 站点使用自定义主题,并且要求站点必须支持额外的基于公司名称的主题。公司名称在用户登录到 Web 站点时进行设置。公司的主题名存储在变量 ThemeName 中。你需要使用这个变量动态的设置 Web 站点的主题,你应该如何做?()

A.在Web站点的每个页面的声明标记中增加<%@pagetheme=”themename”…%>
B.在Web站点的每个页面的Load事件中增加Page.Theme=ThemeName;
C.在Web站点的每个页面的PreInit事件中增加Page.Theme=ThemeName;
D.在Web站点的配置文件中增加

9.单项选择题你正在创建一个 Web 窗体。它包含一个让用户关闭页面的按钮 btnCancel。当用户单击这个按钮的时候需要跳过验证。在测试过程中,你发现单击 Cancel 按钮并不能关闭页面。你需要确保用户始终能够关闭页面,你应该如何做?()

A. 设置Web窗体上验证控件的Enabled 属性为False。
B. 设置btnCancel 按钮的CausesValidation 属性为False.
C. 设置btnCancel 按钮的CausesValidation 属性为True.
D. 设置Web窗体上验证控件的Visible 属性为False。

10.多项选择题你正在开发一个使用 SqlConnection 对象连接到 Microsoft SQL Server 数据库的应用。你的连接对象正在使用连接池。当连接池满的时候请求将被排队或者某些连接请求可能被拒绝。你需要确保应用能够尽早的释放连接给连接池。因此,为了减少连接被拒的可能性,你应该从下面那三个方法着手解决?()

A. 确保完成执行后调用每个连接对象的Close方法。
B. 确保完成执行后每个连接对象保持打开状态。
C. 在连接字符串内增加Max Pool Size的值。
D. 在连接字符串内增加Min Pool Size的值。
E. 在连接字符串内增加Connection Lifetime的值。
F. 增加SqlConnection对象的ConnectionTimeout属性的值。

最新试题

You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside in a subdirectory below the Web application's root directory. Users must not be able to navigate directly to these files in a Web browser unless they are members of the Accounting role. You need to write an ASP.NET HTTP handler that will use the FileAuthorizationModule class.Which form of authentication should you use?()

题型:单项选择题

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 Form. The Web Form uses the FormView control to enable a user to edit a record in the database. When the user clicks the Update button on the FormView control, the application must validate that the user has entered data in all of the fields. You need to ensure that the Web Form does not update if the user has not entered data in all of the fields.Which code segment should you use?()

题型:单项选择题

ou are developing a chat forum for the Certkiller .com Web site. You are using ASP.NET 2.0 to develop the chat forum. You are developing a Web Form that allows a subscriber to alter enter their account details. The page contains the following code snippet.You need to programmatically hide the TextBox control based on other input.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 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 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 recently developed a Web application that accesses an external Web service to retrieve current exchange rates for Certkiller .com's e-Commerce Web site. The Web service converts USD prices to the customer's local currency. You have stored the URL to the external Web service's endpoint in the section of the Web.config file. The Web application has been successfully deployed to a Certkiller .com Web server named Certkiller -SR14. A few months later the vendor of the Web service changes the port that is used to access the Web service. You need to update the section of the Web application's Web.config file from Certkiller -WS528. You need to ensure that your solution has a minimal impact on customers that may be connected to the e-Commerce Web site.What should you do?()

题型:单项选择题

You create a Web application for your company's intranet. You want to enable users to customize their versions of the intranet home page. You create sections of content as Web Parts. You need to ensure that users can customize content at any time.Which two code segments 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?()

题型:单项选择题