单选题In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes.()Avar n = $(“input:checked”).length;Bvar n = $(“:input, :checked”).length;Cvar n = $(“input:selected”).length;Dvar n = $(“:input, :selected”).length;

单选题
In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes.()
A

var n = $(“input:checked”).length;

B

var n = $(“:input, :checked”).length;

C

var n = $(“input:selected”).length;

D

var n = $(“:input, :selected”).length;


参考解析

解析: 暂无解析

相关考题:

You need to create a web share on your Windows 2000 Professional computer named Admin01. You create a folder named reports. Then you configure web sharing on Reports. You name the share WebReports and allow Read permissions on the share.You test the web share by pointing to http://admin01/WebReports from another computer. You receive the following error message, 'You are not authorized to view this page.'You need to be able to access the folder. What must you do?A.Allow write permission on WebReports.B.Allow directory browsing permissions on WebReports.C.In the IIS console, enable anonymous access to WebReports.D.In the IIS console, set the execute permissions option to script. and executables on WebReports.

You are working on an existing Web site. You need to secure the Web site by redirecting all users to the logon page, Login.aspx. After logging on, users must be sent back to the page that they originally requested.Which code segment should you use?()A.B.C.D.

You create a master page named Article.master. Article.master serves as the template for articles on your Web site. The master page uses the following page directives. %@ Master Language="C#" Src="~/article.master.cs" Inherits="article" % You need to create a content page that uses the master page as a template. In addition, you need to use a single master page for all devices that access the Web site. Which code segment should you use? ()A、%@ Page Language="C#" Theme="article"%B、%@ Page Language="C#" MasterPageFile="~/article.master"%C、%@ Page Language="C#" ie:MasterPageFile="~/article.master"%D、%@Page Language="C#" all:MasterPageFile="~/article.master"%

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” _ %

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.

You are implementing a Web page that displays text that was typed by a user. You need to display the user input in the Web page so that a cross-site scripting attack will be prevented. What should you do?()A、Call document.write.B、Call Response.Write.C、Call HttpUtility.UrlEncode.D、Call HttpUtility.HtmlEncode.

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" %

You create a master page named Article.master. Article.master serves as the template for articles on your Web site. The master page uses the following page directives. %@ Master Language="VB" CodeFile="article.master.vb" Inherits="article" % You need to create a content page that uses the master page as a template. In addition, you need to use a single master page for all devices that access the Web site. Which code segment should you use? ()A、%@ Page Language="VB" Theme="article"%B、%@ Page Language="VB" MasterPageFile="~/article.master"%C、%@ Page Language="VB" ie:MasterPageFile="~/article.master"%D、%@Page Language="VB" all:MasterPageFile="~/article.master"%

In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes.()A、var n = $(“input:checked”).length;B、var n = $(“:input, :checked”).length;C、var n = $(“input:selected”).length;D、var n = $(“:input, :selected”).length;

You create a Web application. You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform? ()A、Add a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.B、Add a system.diagnostics section to the Web.config file. Then add a listener to the new section.C、Use the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.D、In the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.

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.

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 theASP.NET page designer. You need to add a control to the master page to define the region. Which control should you add?()A、PlaceHolderB、ContentPlaceHolderC、ContentD、Substituition

You create a Web site. You add an EditorZone control to the home page on the Web site. You need to enable users to customize the size and location of the Web Parts on their home pages. Which two controls should you add to the EditorZone control?()A、BehaviorEditorPartB、AppearanceEditorPartC、PropertyGridEditorPartD、LayoutEditorPart

多选题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? ()AIn the Web.config file, enable impersonation.BIn IIS, enable anonymous access.CIn IIS, disable anonymous access.DIn the Web.config file, set the authentication mode to Windows.

单选题You need to create a web share on your Windows 2000 Professional computer named Admin01. Youcreate a folder named reports. Then you configure web sharing on Reports.  You name the shareWebReports and allow Read permissions on the share.You test the web share by pointing to http://admin01/WebReports from another computer. You receivethe following error message, ‘You are not authorized to view this page.’You need to be able to access the folder.  What must you do? ()AAllow write permission on WebReports.BAllow directory browsing permissions on WebReports.CIn the IIS console, enable anonymous access to WebReports.DIn the IIS console, set the execute permissions option to script and executables on      WebReports.

多选题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? ()AIn the Web.config file, enable impersonation.BIn IIS, enable anonymous access.CIn IIS, disable anonymous access.DIn the Web.config file, set the authentication mode to Windows.

单选题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 %

单选题You create a Web Form. The Web Form allows users to calculate values and display the results in a label named lblResults. You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form. Which code segment should you use?()Aprotected void Page_Error(object sender, EventArgs e) { lblResults.Text = e.ToString(); e=null;}Bprotected void Page_Error(object sender, EventArgs e) { lblResults.Text = Server.GetLastError().ToString(); Server.ClearError();}Cprotected void Page_Error(object sender, EventArgs e) Response.Write(e.ToString()); e=null;}Dprotected void Page_Error(object sender, EventArgs e) Response.Write(Server.GetLastError().ToString()); Server.ClearError();}

单选题You are developing an ASP.NET MVC 2 Web application. A page makes an AJAX request and expects a list of company names in the following format. ["Adventure Works","Contoso"] You need to write an action method that returns the response in the correct format. Which type should you return from the action method?()AAjaxHelperBXDocumentCJsonResultDDataContractJsonSerializer

多选题You create a Web application. You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending. Which two actions should you perform? ()AAdd a TraceContextEventHandler to the Trace.TraceFinished event to add the trace records into the database.BAdd a system.diagnostics section to the Web.config file. Then add a listener to the new section.CUse the System.Diagnostics.Trace object to connect to a database. Then insert the trace records.DIn the Page_Load for the page, place the Trace.Write call into a SQL INSERT statement.

多选题You write a logging function for a Web Form. You call the logging function from the Page_Unload event handler. You test the Web Form and notice that the Page_Unload event handler does not call the logging function. You need to ensure that the logging function is called. What are two possible ways to achieve this goal? ()ASet the Page attribute to AutoEventWireup=False. Remove the attribute onunload=Page_Unload from the Web Form element.BSet the Page attribute to AutoEventWireup=False. Add the attribute OnUnload=Page_Unload to the Web Form element.CSet the Page attribute to AutoEventWireup=False. Add the Web Form attribute autocomplete=on.DSet the Page attribute to AutoEventWireup=True.