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

问题:

[单选]

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. 
You create a Web page to display photos and captions. The caption of each photo in the database can be modified by using the application. You write the following code fragment. 

 English 
 Chinese 
 Japan 
 Korean 
 - 123 - Test Information Co., Ltd. All rights reserved. <asp:FormView DataSourceID="ObjectDataSource1" DataKeyNames="PhotoID" runat="server">
<EditItemTemplate> 
<asp:TextBox Text=’<%# Bind("Caption") %>’ runat="server"/> 
<asp:Button Text="Update" CommandName="Update" runat="server"/> 
<asp:Button Text="Cancel" CommandName="Cancel" runat="server"/> 
</EditItemTemplate> <ItemTemplate> 
<asp:Label Text=’<%# Eval("Caption") %>’ runat="server" /> 
<asp:Button Text="Edit" CommandName="Edit" runat="server"/> 
</ItemTemplate> 
</asp:FormView> 
When you access the Web page, the application throws an error. 
You need to ensure that the application successfully updates each caption and stores it in the database. 
What should you do? ()

A . Add the ID attribute to the Label control.
B . Add the ID attribute to the TextBox control.
C . Use the Bind function for the Label control instead of the Eval function.
D . Use the Eval function for the TextBox control instead of the Bind function.

You need to design the deployment of antivirus software. What should you do?() Install the antivirus software on each mailbox storage server。 Install the antivirus software on each Outlook Web Access server。 Install the antivirus software on one Outlook Web Access server at each office。 Install the antivirus software on a back-end server that contains no mailboxe。 氯霉素为何被禁用于食品动物? 图层组可以方便地对()进行管理,并对“组”中的所有层进行统一参数设置。 三公九卿 单击图层面板下方的()按钮,可以建立一个新的图层组系列。

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. 
You create a Web page to display photos and captions. The caption of each photo in the database can be modified by using the application. You write the following code fragment. 

 English 
 Chinese 
 Japan 
 Korean 
 - 123 - Test Information Co., Ltd. All rights reserved. <asp:FormView DataSourceID="ObjectDataSource1" DataKeyNames="PhotoID" runat="server">
<EditItemTemplate> 
<asp:TextBox Text=’<%# Bind("Caption") %>’ runat="server"/> 
<asp:Button Text="Update" CommandName="Update" runat="server"/> 
<asp:Button Text="Cancel" CommandName="Cancel" runat="server"/> 
</EditItemTemplate> <ItemTemplate> 
<asp:Label Text=’<%# Eval("Caption") %>’ runat="server" /> 
<asp:Button Text="Edit" CommandName="Edit" runat="server"/> 
</ItemTemplate> 
</asp:FormView> 
When you access the Web page, the application throws an error. 
You need to ensure that the application successfully updates each caption and stores it in the database. 
What should you do? ()

参考答案:

  参考解析

本题暂无解析

在线 客服