A.<location path="Premium.aspx"> <system.web> <authorization> <allow users="Subscribers"/> <deny users="*"/> </authorization> </system.web> </location>
B.<location path="Premium.aspx"> <system.web> <authorization> <allow roles="Subscribers"/> <deny users="*"/> </authorization> </system.web> </location>
C.<location path="Premium.aspx"> <system.web> <authorization> <allow roles="Subscribers"/> <deny users="?"/> </authorization> </system.web> </location>
D.<location path="Premium.aspx"> <system.web> <authorization> <deny users="*"/> <allow roles="Subscribers"/> </authorization> </system.web> </location>
您可能感兴趣的试卷
你可能感兴趣的试题
A Web service returns a list of system users in the following format.
You need to populate a drop-down menu with the IDs and names of the users from the Web service, in the order provided by the service. Which code segment should you use?()
A.$.ajax({type: "GET", url: serviceURL, success: function(xml) { $.each($(xml), function(i, item) { $("").attr("value", id).text(tx).appendTo("#dropdown"); }); } });
B.$.ajax({ type: "GET", url: serviceURL, success: function(xml) { $(xml).find("user").each(function() { var id = $(this).id; var tx = $(this).name.text $("").attr("value", id).text(tx).appendTo("#dropdown"); }); } });
C.$.ajax({ type: "GET", url: serviceURL, success: function(xml) { $(xml).find("user").each(function() { var id = $(this).attr("id"); var tx = $(this).find("name").text();$("").attr("value", id).text(tx).appendTo("#dropdown"); }); } });
D. $.ajax({ type: "GET", url: serviceURL, success: function(xml) { xml.find("user").each(function(node) { var id = $(node).attr("id"); var tx = $(node).find("name").text(); $("").attr("value", id).text(tx).appendTo("#dropdown"); }); } });
A.$.ajax({ type: "GET", url: localURL, dataType: "jsonp", success: function(htmlText { $("#span1").text(htmlText); } });
B.$.ajax( localURL, {}, function(htmlText) { $("#span1").html(htmlText); },"html" );
C.$.ajax({ type: "GET", url: localURL, dataType: "html",success: function(htmlText) { $("#span1").innerHTML = htmlText; }});
D.$.ajax({ type: "GET", url: localURL, success: function(htmlText) { $("#span1").html(htmlText); } });
You create an ASP.NET page. The page uses the jQuery $.ajax function to make calls back to the server in several places. You add the following div element to the page.
You need to implement a single error handler that will add error information from all page $.ajax calls to the div named errorInfo. What should you do?()
A.Add the following options to each $.ajax function call:
B.Add the following code to the $(document).ready function on the page:
C.Add the following option to each $.ajax function call:
D.Add the following code to the $(document).ready function on the page:
You are implementing an ASP.NET AJAX page. You add the following control to the page.
You need update the contents of the UpdatePanel without causing a full reload of the page. Which two actions should you perform?()
A.Add the following control before the UpdatePanel.
B.Add the following control within the UpdatePanel.
C.Add an AsyncPostBackTrigger that references Timer1.
D.Add a PostBackTrigger that references Timer1.
You create a Web page that contains the following code.
You need to ensure that when the user clicks an item in the list, the text color of the "Welcome!" message will change. Which declaration should you use?()
A.<ul id="color"> <li onclick="changeColor(this.innerText);">Black</li> <li onclick="changeColor(this.innerText);">Red</li> </ul>
B.<ul id="color"> <li onclick="changeColor(this.style.color);">Black</li> <li onclick="changeColor(this.style.color);">Red</li> </ul>
C.<ul id="color"> <li><a onfocus="changeColor(this.innerText);">Red</a></li> <li><a onfocus="changeColor(this.innerText);">Black</a></li> </ul>
D.<ul id="color"> <li><a onfocus="changeColor(this.innerText);">Red</a></li> <li><a onfocus="changeColor(this.innerText);">Black</a></li> </ul>
You create a Web page that contains the following code.
You need to provide the following implementation. Each time the AddFile button is clicked, a new div element is created. The new div element is appended after the other file upload div elements and before the AddFile span. Each new element has a unique identifier. Which code segment should you use?()
A.$("#AddFile").click(function () {var id = "File" + ++lastId; var item =$(".File:first").clone(true); $("input:file", item).attr({ id: id, name: id }); item.insertBefore("#AddFile"); });
B.$("#AddFile").click(function () {var id = "File" + ++lastId;$(".File:first").clone(true).attr({ id: id, name: id }).insertBefore("#AddFile"); });
C.$("#AddFile").click(function () {var id = "File" + ++lastId; });
D.$("#AddFile").click(function () {var id = "File" + ++lastId;var item = $(".File:first").clone(true); $("input:file", item).attr({ id: id, name: id }); item.insertAfter("input[type=file]"); });
A.$(imageurls).each(function(i,url){ $("", url).append("#target"); });
B.$(imageurls).each(function(i,url){ $("#target") += $("").attr("src", url); });
C.$.each(imageurls, function(i,url){ $("").attr("src", url).appendTo("#target"); });
D.$.each(imageurls, function(i,url){$("#target").append("").src = url; });
A Web page includes the HTML shown in the following code segment.
You need to write a JavaScript function that will dynamically format in boldface all of the hyperlinks in the ref span.Which code segment should you use?()
A.$("#ref").filter("a[href]").bold();
B.$("ref").filter("a").css("bold");
C.$("a").css({fontWeight:"bold"});
D.$("#ref a[href]").css({fontWeight:"bold"});
You create a Web page that contains the following image element.
You need to write a JavaScript function that will dynamically change which image is displayed. Which code segment should you use?()
A.function changeImage() {myImage.src = "image2.png"; }
B.function changeImage() { document.getElementById("myImage").src = "image2.png"; }
C.function changeImage() { getElementById("myImage").src = "image2.png"; }
D.function changeImage() { window.getElementById("myImage").src = "image2.png"; }
You create a Web page that contains drop-down menus that are defined by using div tags in the following code.
You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title. Which code segment should you use?()
A.$(".dropdown-menu").hover( function () { $(".menu-items").slideDown(100); },function () { $(".menu-items").slideUp(100); } );
B.$(".dropdown-menu").hover( function () { $(".menu-items", this).slideDown(100); },function (){ $(".menu-items", this).slideUp(100); } );
C.$(".dropdown-menu").hover( function () { $(this)".slideDown(100); }, function () { $(this).slideUp(100); } );
D.$(".dropdown-menu").hover( function () { $("this.menu-title",).slideDown(100); },function () {$("this.menu-title",).slideUp(100); } );
最新试题
Which control allows you to bind to data items that are returned from a data source and display them?()
Which of the following is the correct collection of build events?()
You are developing an ASP.NET Web application.The application is configured to use the membership and role providers. You need to allow all users to perform an HTTP GET for application resources, but you must allow only the user named Moderator to perform a POST operation.Which configuration should you add to the web.config file?()
In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes.()
A library called contosobuisness.dll has been created and u need to accept it in a page.. all options had the <%assembly tag but the att differed.()
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You have recently finished the development of an ASP.NET Web application using .NET Framework 4.0. Now, you are deploying the ASP.NET Web application to a remote server. You are required to select a deployment method that will make sure that all Internet Information Services (IIS) settings, in addition to the Web content, are deployed to the remote server. Which of the following deployment methods will you select to accomplish this?()
The page will be posted to the server after one or more image files are selected for upload.You need to ensure that all unuploaded files are saved to the server within one call to a single event handler. What should you do? ()
You need to ensure that when the button is clicked, both update panels update the tim without generating a postback. What should you do?()
You are developing an ASP.NET Web application. The application must pass an object that contains user-specific data between multiple pages. The object ismore than 100 KB in size when serialized.You need to minimize the amount of data is sent to the user.What should you do?()
Which method of the ChildActionExtensions class calls a child action method and renders the result inline in the parent view?()