相关考题

单项选择题 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You write the following code fragment:   <asp:ScriptManager ID="ScriptManager1" runat="server" />   <asp:UpdatePanel ID="updateLabels" runat="server" UpdateMode="Conditional">   <ContentTemplate>   <asp:Label ID="Label1" runat="server" />   <asp:Label ID="Label2" runat="server" />   <asp:Button ID="btnSubmit" runat="server" Text="Submit"   onclick="btnSubmit_Click" />  </ContentTemplate>   </asp:UpdatePanel>   <asp:Label id="Label3" runat="server" />    You need to ensure that when you click the btnSubmit Button control, each Label control value is asynchronously updatable.  Which code segment should you use?()

单项选择题 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? ()

单项选择题 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Microsoft Windows Communication Foundation (WCF) service that exposes the following service contract:   01 [ServiceContract]   02 public interface IBlogService   03 {   04   [OperationContract]   05   [WebGet(ResponseFormat=WebMessageFormat.Xml)]   06   Rss20FeedFormatter GetBlog();   07 } You configure the WCF service to use the WebHttpBinding class, and to be exposed at the following URL:   http://www.contoso.com/BlogService    You need to store the result of the GetBlog operation in an XmlDocument variable named xmlBlog in a Web form.  Which code segment should you use?()