网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.If Page.User.Identity.Name "CONTOSO\Administrator" Then Response.Redirect("login.aspx")End IfYou are logged on as Administrator. When you display the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()

A. In the Web.config file, enable impersonation.

B. In IIS, enable anonymous access.

C. In IIS, disable anonymous access.

D. In the Web.config file, set the authentication mode to Windows.


参考答案

更多 “ You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.If Page.User.Identity.Name "CONTOSO\Administrator" Then Response.Redirect("login.aspx")End IfYou are logged on as Administrator. When you display the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()A. In the Web.config file, enable impersonation.B. In IIS, enable anonymous access.C. In IIS, disable anonymous access.D. In the Web.config file, set the authentication mode to Windows. ” 相关考题
考题 Access提供了Web页向导,它通过______的方式,让用户根据自己的需要选择一定的选项来创建Web页。

考题 下面( )文件负责处理Application_Start、Application_End、Session_Start和Session_End等事件。A.Web.configB.Config.asaxC.Global.asaxD.Global.inc

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

考题 当 Web 应用关闭后,你需要人工释放资源。为此,你应该响应哪一个事件?() A.Application_BeginRequestB.Application_EndC. Application_StartD.Application_EndRequest

考题 WhatisthenameoftheWebLogicspecificdeploymentdescriptorofJavaEnterpriseApplication?() A.application.xmlB.weblogic.xmlC.web.xmlD.weblogic-application.xmlE.config.xml

考题 下面哪一个项目仅在Struts中出现?() A.JavaBeanB.WeB.xmlC.struts-config.xmlD.application.propertyes

考题 下面选项中,创建Servlet类后需要在哪个配置文件中进行配置()。A.web-config.xmlB.application.xmlC.config.xmlD.web.xml

考题 1、当有用户请求 Web页面时,会触发()事件?A.Application_Start()B.Session_Start()C.Application_End()D.Session_End()

考题 当有用户请求 Web页面时,会触发()事件?A.Application_Start()B.Session_Start()C.Application_End()D.Session_End()

考题 连接到同一web服务器的各客户端共享该服务器的application对象。