单选题你正在使用 ASP.NET 成员资格管理 APIs(ASP.NET membership APIs)管理 Web 站点的用户帐户。其中,Web.config 文件中包含了成员资格提供程序的配置信息。你修改 Web.config 增加支持密码恢复功能;创建 PasswordReset.aspx 文件让用户可以在线重置密码。要求密码必须通过邮件发送给用户。请从下面选择一个可以达到此目的的方法?()A 在PasswordReset.aspx 页面上增加PasswordRecovery控件,并且配置它。B

题目
单选题
你正在使用 ASP.NET 成员资格管理 APIs(ASP.NET membership APIs)管理 Web 站点的用户帐户。其中,Web.config 文件中包含了成员资格提供程序的配置信息。你修改 Web.config 增加支持密码恢复功能;创建 PasswordReset.aspx 文件让用户可以在线重置密码。要求密码必须通过邮件发送给用户。请从下面选择一个可以达到此目的的方法?()
A

在PasswordReset.aspx 页面上增加PasswordRecovery控件,并且配置它。

B

在PasswordReset.aspx 文件的Page_Load 方法里设置 Membership.EnablePasswordReset 为True。

C

在PasswordReset.aspx 页面上增加ChangePassword 控件,并配置它。

D

修改Login.aspx页面,增加一个必填的保密问题回答文本框。然后重新定向用户到 PasswordReset.aspx 文件。


相似考题
更多“你正在使用 ASP.NET 成员资格管理 APIs(ASP.NET membership APIs)管理 Web 站点的”相关问题
  • 第1题:

    你觉得ASP.NET 2.0(VS2005)和你以前使用的开发工具(.Net 1.0或其他)有什么最大的区别?你在以前的平台上使用的哪些开发思想(pattern / architecture)可以移植到ASP.NET 2.0上 (或者已经内嵌在ASP.NET 2.0中)


    正确答案:
    答:1   ASP.NET 2.0 把一些代码进行了封装打包,所以相比1.0相同功能减少了很多代码.
         2   同时支持代码分离和页面嵌入服务器端代码两种模式,以前1.0版本,.NET提示帮助只有在分离的代码文件,无        法 在页面嵌入服务器端代码获得帮助提示,
         3 代码和设计界面切换的时候,2.0支持光标定位.这个我比较喜欢
         4 在绑定数据,做表的分页.UPDATE,DELETE,等操作都可以可视化操作,方便了初学者
         5 在ASP.NET中增加了40多个新的控件,减少了工作量

  • 第2题:

    你正在创建一个使用Web 部件的ASP.NET Web站点。你为Web页增加了一个WebPartZones控件。下面那个控件可以实现给WebPartZones控件增加一个Web部件。()

    • A、 ZoneTemplate
    • B、 Control
    • C、 WebPartManager
    • D、 WebPart

    正确答案:A

  • 第3题:

    你正在使用 ASP.NET 成员资格管理 APIs(ASP.NET membership APIs)管理 Web 站点的用户帐户。其中,Web.config 文件中包含了成员资格提供程序的配置信息。你修改 Web.config 增加支持密码恢复功能;创建 PasswordReset.aspx 文件让用户可以在线重置密码。要求密码必须通过邮件发送给用户。请从下面选择一个可以达到此目的的方法?()

    • A、在PasswordReset.aspx 页面上增加PasswordRecovery控件,并且配置它。
    • B、在PasswordReset.aspx 文件的Page_Load 方法里设置 Membership.EnablePasswordReset 为True。
    • C、在PasswordReset.aspx 页面上增加ChangePassword 控件,并配置它。
    • D、修改Login.aspx页面,增加一个必填的保密问题回答文本框。然后重新定向用户到 PasswordReset.aspx 文件。

    正确答案:A

  • 第4题:

    你正在建立一个 Web 站点。这个 Web 站点使用已经预先定义好的角色和用户进行安全管理。现在,你需要重新配置一下这些角色和用户,你应该怎么做?()

    • A、the Microsoft .NET Framework Configuration tool
    • B、the Code Access Security Policy tool
    • C、the ASP.NET IIS Registration tool
    • D、the Web Site Administration Tool(ASP.NET 站点配置工具)

    正确答案:D

  • 第5题:

    你创建了一个使用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。

    正确答案:C

  • 第6题:

    单选题
    你正在创建一个使用自定义 Web 部件的 ASP.NET Web 应用。你希望用户能够编辑自定义 Web部件的属性。你应该使用那一个类?()
    A

    AppearanceEditorPart

    B

    BehaviorEditorPart

    C

    PropertyGridEditorPart

    D

    LayoutEditorPart


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

  • 第7题:

    单选题
    你正在创建一个 ASP.NET Web 站点,它使用主题去保证站点中所有页面的控件都保持一致的风格。请问,你的 skin 文件应该位于那个目录?()
    A

    App_Theme/<theme_name>

    B

    App_StyleSheetTheme/<theme_name>

    C

    App_<theme_name>/<theme_name>

    D

    /<theme_name>

    E

    The root application folder

    F

    App_Themes/<theme_name>


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

  • 第8题:

    单选题
    你正在为一个保险公司创建一个ASP.NET应用程序。公司将用你的应用程序来记录保险索赔(声明)。另一个开发小组创建一个可重新分配的组件,该组件将在你的ASP.NET应用程序中使用。该组件要能正确的运行,在安装时就需要创建几个登记入口。将来同样的组件可能被另外的ASP.NET应用程序使用。开发小组把组件的源代码和组件的所有的项目文件都给了你。你添加组件项目到你的ASP.NET应用程序中。你要为你的应用程序创建一个配置包。你想在你的配置包中包括这个可重新分配的组件。你该怎么做?()
    A

    为可重新分配组件创建一个安装项目。为你的ASP.NET应用程序创建一个Web安装项目

    B

    为你的ASP.NET应用程序创建一个合并模块项目。为可重新分配组件创建一个安装项目,并将你的ASP.NET应用程序的合并模块添加到项目中。

    C

    为你的ASP.NET应用程序和可重新分配组件各创建一个合并模块项目。创建一个Web安装项目并将两个合并模块添加到项目中。

    D

    为可重新分配组件创建一个合并模块项目。为你的ASP.NET应用程序创建一个Web安装项目,并将可重新分配组件的合并模块添加到项目中。


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

  • 第9题:

    单选题
    你正在创建一个装载大 XML 文档的 ASP.NET Web 应用并且使用 Xpath 去查询和过滤 XML 文档。由于文档比较大,所以性能是一个关键因素。已知,用户不需要修改文档内容。请问,你应该使用那个类?()
    A

    XpathNavigator

    B

    XmlReader

    C

    XpathDocument

    D

    XmlDocument


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

  • 第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。


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

  • 第11题:

    单选题
    Which class defines the contract that ASP.NET implements to provide membership services using custom membership providers?()
    A

    FormsAuthentication

    B

    RoleProvider

    C

    SqlRoleProvider

    D

    MembershipProvider


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

  • 第12题:

    单选题
    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?()
    A

    Add a PasswordRecovery element to the PasswordReset.aspx file and configure it.

    B

    Modify the Page_Load to set the Membership.EnablePasswordReset to True in the PasswordReset.aspx file.

    C

    Add a ChangePassword element to the PasswordReset.aspx file and configure it.

    D

    Modify the Login.aspx form to include a Required Field validator on the secret question answer text box. Then redirect users to the PasswordReset.aspx file.


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

  • 第13题:

    在ASP.NET中,下面说法正确的是()

    • A、machine.config用来保存Asp.net的当前计算机所有应用程序的配置
    • B、web.config通常用来保存一个站点信息的配置信息
    • C、web.config在一个web应用程序中可以有多个
    • D、以上说法都正确

    正确答案:C

  • 第14题:

    ASP.NET内置的成员资格管理体系中,其使用的默认数据库为()。

    • A、 ASPNETDB
    • B、 USERDB
    • C、 ASPUSERDB
    • D、 USERROLE

    正确答案:A

  • 第15题:

    你正在创建一个用于成员管理的 Web 站点。它的功能依据用户所属角色不同而不同。其中,Web 站点使用 ASP.NET 成员管理相关控件进行帐户的创建。现在,你需要确定一个用户是否是指定角色的一个成员,你应该如何做?()

    • A、使用Membership.ValidateUser
    • B、使用 User.IsInRole.
    • C、使用Roles.RoleExists.
    • D、使用Membership.GetUser.

    正确答案:B

  • 第16题:

    你正在创建一个 ASP.NET Web 站点,它使用主题去保证站点中所有页面的控件都保持一致的风格。请问,你的 skin 文件应该位于那个目录?()

    • A、App_Theme/<theme_name>
    • B、App_StyleSheetTheme/<theme_name>
    • C、App_<theme_name>/<theme_name>
    • D、/<theme_name>
    • E、The root application folder
    • F、App_Themes/<theme_name>

    正确答案:F

  • 第17题:

    单选题
    你正在为一家公司的Internet网站创建ASP.NET应用程序。你想创建一个在网站的每个页面的顶部都显示的工具条,此工具条仅包括静态HTML代码,只能在你的应用程序中使用。你计划创建的工具条可以被你的应用程序重复使用,而且你必须尽快的完成这个工具条,你该怎么做?()
    A

    创建一个新的Web控件库项目,在一个Web自定义控件中创建工具条

    B

    将一个新的Web窗体添加到你的ASP.NET项目,使用HTML服务器控件在WEB窗体内设计该工具条,并用.ascx扩展名保存该web窗体

    C

    将一个新的Web用户控件添加到你的ASP.NET项目,在Web用户控件中创建工具条

    D

    将一个新的组件类添加到你的ASP.NET项目,使用HTML服务器控件在该组件类的设计程序中设计该工具条


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

  • 第18题:

    单选题
    你正在建立一个 Web 站点。这个 Web 站点使用已经预先定义好的角色和用户进行安全管理。现在,你需要重新配置一下这些角色和用户,你应该怎么做?()
    A

    the Microsoft .NET Framework Configuration tool

    B

    the Code Access Security Policy tool

    C

    the ASP.NET IIS Registration tool

    D

    the Web Site Administration Tool(ASP.NET 站点配置工具)


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

  • 第19题:

    单选题
    你正在创建一个用于成员管理的 Web 站点。它的功能依据用户所属角色不同而不同。其中,Web 站点使用 ASP.NET 成员管理相关控件进行帐户的创建。现在,你需要确定一个用户是否是指定角色的一个成员,你应该如何做?()
    A

    使用Membership.ValidateUser

    B

    使用 User.IsInRole.

    C

    使用Roles.RoleExists.

    D

    使用Membership.GetUser.


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

  • 第20题:

    单选题
    你正在创建一个使用Web 部件的ASP.NET Web站点。你为Web页增加了一个WebPartZones控件。下面那个控件可以实现给WebPartZones控件增加一个Web部件。()
    A

     ZoneTemplate

    B

     Control

    C

     WebPartManager

    D

     WebPart


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

  • 第21题:

    多选题
    You are implementing an ASP.NET Web application. Users will authenticate to the application with an ID. The application will allow new users to register for an account. The application will generate an ID for the user based on the users full name. You need to implement this registration functionality. Which two actions should you perform?()
    A

    Configure the SqlMembershipProvider in the web.config file.

    B

    Configure the SqlProfileProvider in the web.config file.

    C

    Create an ASP.NET page that contains a default CreateUserWizard control to create a new user account.

    D

    Create an ASP.NET page that contains a custom form that collects the user information and then uses the Membership.CreateUser method to create a new user account.


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

  • 第22题:

    单选题
    You manage a server that runs Windows Server 2008. The server has the Web Server (IIS) role installed. The Web developer at your company creates a new Web site that runs an ASP.NET 3.0 Web application.  The ASP.NET Web application must run under a security context that is separate from any other ASP.NET application on the Web server.  You create a local user account and grant account rights and permissions to run the ASP.NET Web application.  You need to configure authentication for the new Web site to support the Web application. What should you do?()
    A

    Configure the Windows Authentication setting to Enabled.

    B

    Configure the Forms Authentication setting to Enabled by using all the default settings.

    C

    Configure the ASP.NET State service to log on to the new local user account by using the Services console.

    D

    Configure the ASP.NET Impersonation setting to Enabled. Edit the ASP.NET Impersonation setting by specifying the new local user account.


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

  • 第23题:

    单选题
    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? ()
    A

    Pass the user names and passwords to Membership.ValidateUser.

    B

    Pass the role names to User.IsInRole.

    C

    Pass the role names to Roles.RoleExists.

    D

    Pass the user names to Membership.GetUser.


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

  • 第24题:

    单选题
    您管理着一台运行 Windows Server 2008的服务器。该服务器上安装了Web服务器(IIS)角色。公司的 Web 开发人员创建了一个新的网站,上面运行了一个ASP.NET 3.0 Web应用程序。该ASP.NET Web应用程序必须在与Web服务器上的任何其他ASP.NET应用程序分开的安全上下文中运行。您创建了一个本地用户账户,并授予该账户运行此 ASP.NET Web 应用程序的权利和权限。您需要配置新网站的身份验证,以支持该Web应用程序。该怎么做?()
    A

    将“Windows 身份验证”设置配置为“已启用”。

    B

    使用所有默认设置,将“Forms 身份验证”设置配置为“已启用”。

    C

    使用“服务”控制台将 ASP.NET 状态服务配置为用这个新的本地用户账户登录。

    D

    将“ASP.NET 模拟”设置配置为“已启用”。编辑“ASP.NET 模拟”设置,指定这个新的本地用户账户。


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