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.

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.


相关考题:

If _______ want to stay in good shape, you should do more exercise. A.weB.peopleC.oneD.you

您在运行WindowsServer2008的服务器上安装了Web服务器(IIS)角色。您在该Web服务器上配置了名为contoso.com的网站,以及名为Acctg的Web应用程序。Web服务器的磁盘空间用尽。您将Acctg移至Web服务器上的另一个驱动器。下表显示了当前应用程序配置。用户报告他们无法访问Acctg。您需要使用户能访问Acctg。应该在服务器上运行什么命令?() A.appcmdaddapp/site.name:contoso/path:/Acctg/physicalPath:d:\AcctgB.appcmdaddapp/site.name:contoso/path:/Acctg/physicalPath:f:\AcctgC.appcmdsetapp/site.name:contoso/path:/Acctg/physicalPath:d:\AcctgD.appcmdsetapp/site.name:contoso/path:/Acctg/physicalPath:f:\Acctg

YourcompanysWindowsServer2003environmentconsistsofasingleActiveDirectorydirectoryserviceforest.TheforesthasmultipledomainsandthreesitesnamedSite1,Site2,andSite3.Site1isthemainofficeandhasfourdomaincontrollers.Twoofthedomaincontrollersareglobalcatalogservers.Site2isabranchofficewithtwodomaincontrollers.Site3isabranchofficewithaslowandunreliableWANlinkandtwodomaincontrollers.YouneedtoimproveuserlogonperformanceforusersinSite2andSite3.Whichtwoactionsshouldyouperform?()

YouinstalltheWebServer(IIS)roleonaserverthatrunsWindowsServer2008.YouconfigureaWebsitenamedcontoso.comandaWebapplicationnamedAcctgontheWebserver.TheWebserverrunsoutofdiskspace.YoumoveAcctgtoanotherdriveontheWebserver.Thefollowingtableshowsthecurrentapplicationconfiguration.UsersreportthattheycannotaccessAcctg.YouneedtoenableuserstoaccessAcctg.Whichcommandshouldyourunontheserver?()A.appcmdaddapp/site.name:contoso/path:/Acctg/physicalPath:d:\AcctgB.appcmdaddapp/site.name:contoso/path:/Acctg/physicalPath:f:\AcctgC.appcmdsetapp/site.name:contoso/path:/Acctg/physicalPath:d:\AcctgD.appcmdsetapp/site.name:contoso/path:/Acctg/physicalPath:f:\Acctg

你在名为server1和server2的服务器上安装web服务(IIS)服务角色,服务器运行windowsserver2008.你公司在server1上有一个web站点www.contoso.com。这个web站点要进行维护。维护期间站点内容必须可用。你在server2上创建了一个镜像web站点。你需要把对www.contoso.com站点的请求重定向到server2.你首先应该做什么?() A.运行命令appcmdsetconfig/section.httpRedirect/enabled.trueB.运行命令appcmdsetconfig/section.httpRedirect/enabled.falseC.运行命令appcmdsetsite/site.name.contoso/-bindings.[protocol=’http’,www.contoso.com]D.运行命令appcmdsetsite/site.name.contoso/+bindings.[protocol=’http’,www1.contoso.com]

3、在本地站点中有如下两文件 G:\site\other\index.html G:\site\web\article\01.html index.htm要想链接到01.html这个文件,正确的链接路径应该是:A.href=“01.html”B.href=“web/article/01.html”C.href=“../web/article/01.html”D.href=“../../web/article/01.html”

请使用搜索引擎,查找来自国内政府网站上有关新冠疫苗的信息。A.新冠疫苗 site:gov.cnB.新冠疫苗 site:org.cnC.新冠疫苗 site:ac.cnD.新冠疫苗 site:com.cn

6. 下列哪几项,运用模糊测试技术能够发现Web应用漏洞。 () *本题目实为多选题型 ① 发现Web应用的自身漏洞 ② 发现其底层构件中的漏洞(如Web服务器和DB服务器) ③ 发现Web特定应用漏洞。如Web日志、微软 Outlook Web Access Cross-Site 脚本漏洞、ERP、网络监视等。 A. ① ② B. ② ③ C. ① ③ D. ① ② ③A.AB.BC.CD.D

1、请使用搜索引擎,查找来自国内政府网站上有关新冠疫苗的信息。A.新冠疫苗 site:gov.cnB.新冠疫苗 site:org.cnC.新冠疫苗 site:ac.cnD.新冠疫苗 site:com.cn

下列哪几项,运用模糊测试技术能够发现Web应用漏洞。 () *本题目实为多选题型 ① 发现Web应用的自身漏洞 ② 发现其底层构件中的漏洞(如Web服务器和DB服务器) ③ 发现Web特定应用漏洞。如Web日志、微软 Outlook Web Access Cross-Site 脚本漏洞、ERP、网络监视等。 A. ① ② B. ② ③ C. ① ③ D. ① ② ③A.AB.BC.CD.D