当前位置:MCPD(70-562)题库

问题:

[单选]

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. 
You create a login Web form by using the following code fragment. <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
<asp:TextBox runat="server" ID="txtUser" Width="200px" /> 
<asp:TextBox runat="server" ID="txtPassword" Width="200px" /> 
<asp:Button runat="server" ID="btnLogin" Text="Login" OnClientClick="login(); return false;" /> When a user clicks the btnLogin Button control, the login() client-side script is called to authenticate the user. The credentials provided in the TextBox controls are used to call the client-side script. You also add the following client-script code fragment in the Web form. (Line numbers are included for 

 English 
 Chinese 
 Japan 
 Korean 
 - 151 - Test Information Co., Ltd. All rights reserved. reference only.) 
01 <script type="text/javascript"> 
02 function login() { 
03 var username = $get(’txtUser’).value; 
04 var password = $get(’txtPassword’).value; 
05 
06 // authentication logic. 
07 } 
08 function onLoginCompleted(validCredentials, userContext, 
09 methodName) 
10 { 
11 // notify user on authentication result. 
12 } 
13 
14 function onLoginFailed(error, userContext, methodName) 
15 { 
16 // notify user on authentication exception. 
17 } 
18 </script> 
The ASP.NET application is configured to use Forms Authentication. The ASP.NET AJAX authentication 
service is activated in the Web.config file. 
You need to ensure that the following workflow is maintained: 
&iexcl;¤On successful authentication, the onLoginCompleted clien-script function is called to notify the user. 
&iexcl;¤On failure of authentication, the onLoginFailed clien-script function is called to display an error message. 
Which code segment should you insert at line 06?()

A . A
B . B
C . C
D . D

Certkiller .com's e-Commerce Web application contains a page named Products.aspx that uses data source and data-bound server controls. Customers use the server controls to search for products. The Products.aspx page does not have an associated code-behind file. You need to convert the Products.aspx page to a user control so that its functionality can be reused on other pages. What should you do?() Move the Products.aspx page to the App_Code folder.。 Create a code-behind file for the Products.aspx page.。 Rename the Products.aspx page to Products.ascx..。 Remove all server controls from the Products.aspx page.。 Replace the Page directive with a Control directive.。 低压避雷器的绝缘电阻不得低于()MΩ。 0.5。 1.0。 2.0。 3.0。 Your network contains a server named Server1 that runs Windows Server 2003 Service Pack 2 (SP2). Server1 has a shared printer named Printer1. Users report that when they attempt to connect to Printer1 they receive the following error message: “The Server for ‘Color Laser 1000’ printer does not have the correct printer driver installed. If you want to search for the proper driver click OK. Otherwise, click Cancel and contact your network administrator or original equipment manufacturer for the correct printer driver.” On Server1, you can print a test page on Printer1. You need to ensure that when users connect to Printer1, the correct printer driver is installed. What should you do? () Configure the printer to use the LPT1 local port.。 Configure Advanced settings in Printing Preferences.。 Add an additional driver from the properties of Printer1.。 Add the Allow Manage Printers permission to CREATOR OWNER.。 对于债务人来说,长期借款的风险比短期借款的风险要小。 具有高成就动机的人喜欢做()的任务。 十分简单。 特别困难。 具有一定难度。 常规性。

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. 
You create a login Web form by using the following code fragment. <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
<asp:TextBox runat="server" ID="txtUser" Width="200px" /> 
<asp:TextBox runat="server" ID="txtPassword" Width="200px" /> 
<asp:Button runat="server" ID="btnLogin" Text="Login" OnClientClick="login(); return false;" /> When a user clicks the btnLogin Button control, the login() client-side script is called to authenticate the user. The credentials provided in the TextBox controls are used to call the client-side script. You also add the following client-script code fragment in the Web form. (Line numbers are included for 

 English 
 Chinese 
 Japan 
 Korean 
 - 151 - Test Information Co., Ltd. All rights reserved. reference only.) 
01 <script type="text/javascript"> 
02 function login() { 
03 var username = $get(’txtUser’).value; 
04 var password = $get(’txtPassword’).value; 
05 
06 // authentication logic. 
07 } 
08 function onLoginCompleted(validCredentials, userContext, 
09 methodName) 
10 { 
11 // notify user on authentication result. 
12 } 
13 
14 function onLoginFailed(error, userContext, methodName) 
15 { 
16 // notify user on authentication exception. 
17 } 
18 </script> 
The ASP.NET application is configured to use Forms Authentication. The ASP.NET AJAX authentication 
service is activated in the Web.config file. 
You need to ensure that the following workflow is maintained: 
&iexcl;¤On successful authentication, the onLoginCompleted clien-script function is called to notify the user. 
&iexcl;¤On failure of authentication, the onLoginFailed clien-script function is called to display an error message. 
Which code segment should you insert at line 06?()

参考答案:

  参考解析

本题暂无解析

在线 客服