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

问题:

[单选]

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You plan to add a custom parameter in the SqlDataSource control. You write the following code fragment:  
<asp:SqlDataSource ID="SqlDataSource1" runat="server"  
InsertCommand="INSERT INTO [Employee] ([Field1], [Field2], [PostedDate])   
VALUES (@Field1, @Field2, @PostedDate)"> 
<InsertParameters>  
<asp:Parameter Name="Field1" />  
<asp:Parameter Name="Field2" />  
<custom:DayParameter Name="PostedDate" /> 
</InsertParameters>  
</asp:SqlDataSource>   
You write the following code segment to create a custom parameter class:  
public class DayParameter : Parameter { }
You need to ensure that the custom parameter returns the current date and time. Which code segment should you add to the DayParameter class? ()

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

信息资源存储的主要技术:()、()、()和()。 根据‘一带一路’走向,海上要以()为节点,共同建设通畅安全高效的运输大通道。 港口城市。 沿海省份。 沿海产业园。 重点港口。 You have a Windows 7 computer that is a member of a workgroup. You need to prevent members of a localgroup from starting a specific application. You must achieve this goal by using the minimum amount ofadministrative effort.  What should you create?() administrative template.。 application control policy.。 IPSec policy.。 software restriction policy.。 按国际保险市场惯例,投保金额通常CIF总值的基础上()。 加一成。 加二成。 加三成。 加四成。 中学生思维发展的特点是()。 以直觉行动思维为主。 以具体形象思维为主。 以抽象逻辑思维为主。 具体形象思维向抽象逻辑思维过渡。

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You plan to add a custom parameter in the SqlDataSource control. You write the following code fragment:  
<asp:SqlDataSource ID="SqlDataSource1" runat="server"  
InsertCommand="INSERT INTO [Employee] ([Field1], [Field2], [PostedDate])   
VALUES (@Field1, @Field2, @PostedDate)"> 
<InsertParameters>  
<asp:Parameter Name="Field1" />  
<asp:Parameter Name="Field2" />  
<custom:DayParameter Name="PostedDate" /> 
</InsertParameters>  
</asp:SqlDataSource>   
You write the following code segment to create a custom parameter class:  
public class DayParameter : Parameter { }
You need to ensure that the custom parameter returns the current date and time. Which code segment should you add to the DayParameter class? ()

参考答案:

  参考解析

本题暂无解析

在线 客服