相关考题

单项选择题 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You add a Web form that contains the following code fragment. You write the following code segment for the GetData method of the DAL class. (Line numbers are included for reference only.)  01 public object GetData() {  02 SqlConnection cnn = new SqlConnection( )  | English | Chinese | Japan | Korean | - 41 - Test Information Co., Ltd. All rights reserved. 03 string strQuery = "SELECT * FROM Products";  04  05 }  You need to ensure that the user can use the sorting functionality of the gvProducts GridView control.  Which code segment should you insert at line 04? ()

单项选择题 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You define the following class. Public Class Product  Public Property Price() As Decimal Get End Get  Set(ByVal value As Decimal) End Set  End Property End Class  Your application contains a Web form with a Label control named lblPrice.  You use a StringReader variable named xmlStream to access the following XML fragment.  You need to display the price of the product from the XML fragment in the lblPrice Label control. Which code segment should you use? ()

单项选择题 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You define the following class. public class Product {  public decimal Price { get; set; }  }  Your application contains a Web form with a Label control named lblPrice.  You use a StringReader variable named xmlStream to access the following XML fragment.  You need to display the price of the product from the XML fragment in the lblPrice Label control. Which code segment should you use?()