單項選擇題

You are creating an ASP.NET Web site. The site contains pages that are available to anonymous users. The site also contains a page named Premium.aspx that provides premium content to only members of a group named Subscribers. You need to modify the web.config file to ensure that Premium.aspx can be accessed by only members of the Subscribers group. Which configuration should you use?()

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"); }); } });

微信掃碼免費搜題