You are testing an existing ASP.NET page. The page includes 

题目
单选题
You are testing an existing ASP.NET page. The page includes a text box. You are able to execute malicious JavaScript code by typing it in the text box and submitting. You need to configure the page to prevent JavaScript code from being submitted by the text box. In the @ Page directive, which attribute should you set to true?()
A

the EnableEventValidation attribute

B

the ResponseEncoding attribute

C

the ValidateRequest attribute

D

the Strict attribute

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You have created a JSP that includes instance variables and a great deal of scriptlet code. Unfortunately,after extensive load testing, you have discovered several race conditions in your JSP scriptlet code. To fixthese problems would require significant recoding, but you are already behind schedule. Which JSP codesnippet can you use to resolve these concurrency problems?()

  • A、<%@ page isThreadSafe=’false’ %>
  • B、<%@ implements SingleThreadModel %>
  • C、<%! implements SingleThreadModel %>
  • D、<%@ page useSingleThreadModel=’true’ %>
  • E、<%@ page implements=’SingleThreadModel’ %>

正确答案:A

第2题:

You develop an ASP.NET Web page that includes multiple WebPartZone controls, an EditorZone. Users report that they cannot customize the layout of the page by moving WebParts from one.You need to ensure that users can successfully move Web Parts from one zone to another. What should you do?()

  • A、Configure the Web site to enable session state.
  • B、Configure the Web site to require authentication and to use personalization.
  • C、Add a ProxyWebPartManager control to the page.
  • D、Add a AppearanceEditorPart control to the page.

正确答案:B

第3题:

You create an ASP.NET page named TestPage.aspx that contains validation controls. You need to verify that all input values submitted by the user have been validated by testing the Page.IsValid property. Which page event should you add an event handler to?()

  • A、Init
  • B、Load
  • C、PreInit
  • D、PreLoad

正确答案:B

第4题:

You are testing an existing ASP.NET page. The page includes a text box. You are able to execute malicious JavaScript code by typing it in the text box and submitting. You need to configure the page to prevent JavaScript code from being submitted by the text box. In the @ Page directive, which attribute should you set to true?()

  • A、the EnableEventValidation attribute
  • B、the ResponseEncoding attribute
  • C、the ValidateRequest attribute
  • D、the Strict attribute

正确答案:C

第5题:

You are developing an ASP.NET Web application. You create a master page. The master page requires a region where you can add page-specific content by using the ASP.NET page designer.  You need to add a control to the master page to define the region. Which control should you add?()

  • A、Content
  • B、ContentPlaceHolder
  • C、PlaceHolder
  • D、Substitution

正确答案:B

第6题:

You are implementing an ASP.NET Web page. The page includes several controls, but only a GridView requires view state. You set the GridView… You need to ensure that the page will omit unneeded view state. Wich @ Page directive should you use?()

  • A、<% Page EnableViewState=”true” ViewStateMode=”Enabled” _ %>
  • B、<% Page EnableViewState=”true” ViewStateMode=”Disabled” _ %>
  • C、<% Page EnableViewState=”false” ViewStateMode=”Disabled” _ %>
  • D、<% Page EnableViewState=”false” ViewStateMode=”Enabled” _ %>

正确答案:B

第7题:

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You create a custom Web user control named SharedControl. The control will be compiled as a library.  You write the following code segment for the SharedControl control. (Line numbers are included for  reference only.)  01 protected override void OnInit(EventArgs e) 02 {  03 base.OnInit(e);  04  05 }  All the master pages in the ASP.NET application contain the following directive.  <%@ Master Language="C#" EnableViewState="false" %>  You need to ensure that the state of the SharedControl control can persist on the pages that reference a  | English | Chinese | Japan | Korean | - 87 - Test Information Co., Ltd. All rights reserved. master page.  Which code segment should you insert at line 04?()

  • A、Page.RegisterRequiresPostBack(this);
  • B、Page.RegisterRequiresControlState(this);
  • C、Page.UnregisterRequiresControlState(this);
  • D、Page.RegisterStartupScript("SharedControl","server");

正确答案:B

第8题:

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom-templated server control.  You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page.  Which interface should you implement?()

  • A、the ITemplatable interface 
  • B、the INamingContainer interface 
  • C、the IRequiresSessionState interface
  • D、the IPostBackDataHandler interface

正确答案:B

第9题:

You are perfoming security testing on an existing asp.net web page.You notice that you are able to issue unauthorised postback requests to the page. You need to prevent unauthorised post back requests. which page directive you use?()

  • A、<%@Page strict = "true" %>  
  • B、<%@Page enableViewStateMac = "true" %>
  • C、<%@Page EnableEventValidation = "true" %>
  • D、<%@Page Aspcompact = "true" %>

正确答案:C

第10题:

You are developing an ASP.NET Web page. The page includes a List instance. You add a FormView control to display a single Product from this list. You need to bind the list to the FormView control. Which FormView property should you set in the code-behind file?()

  • A、DataSource
  • B、DataSourceID
  • C、DataKeyNames
  • D、DataMember

正确答案:A

更多相关问题