多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

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") { 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.
正确答案:C,D
答案解析:
进入题库查看解析

微信扫一扫手机做题