单项选择题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a file named movies.xml that contains the following code fragment:
<Movies>
<Movie ID="1" Name="Movie1" Year="2006">
<Desc Value="Movie desc"/>
</Movie>
<Movie ID="2" Name="Movie2" Year="2007">
<Desc Value="Movie desc"/>
</Movie>
<Movie ID="3" Name="Movie3" Year="2008">
<Desc Value="Movie desc"/>
</Movie>
</Movies>
You add a Web form to the application.
You write the following code segment in the Web form:
01 <form runat="server">
02 <asp:xmldatasource
03 id="XmlDataSource1"
04 runat="server"
05 datafile="movies.xml" />
06 ►
07 </form>
You need to implement the XmlDataSource control to display the XML data in a TreeView control. Which code segment should you insert at line 06?()
A.A
B.B
C.C
D.D
相关考题
-
单项选择题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application consumes an ASMX Web service. The Web service is hosted at the following URL: http://www.contoso.com/TemperatureService/Convert.asmx You need to ensure that the client computers can communicate with the service as part of the <system.serviceModel> configuration. Which code fragment should you use?()
A.A
B.B
C.C
D.D -
单项选择题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You write the following code fragment: 01 <asp:RequiredFieldValidator 02 ID="rfValidator1" runat="server" 03 Display="Dynamic" ControlToValidate="TextBox1" 04 05 > 06 07 </asp:RequiredFieldValidator> 08 09 <asp:ValidationSummary DisplayMode="List" 10 ID="ValidationSummary1" runat="server" /> You need to ensure that the error message displayed in the validation control is also displayed in the ValidationSummary list. What should you do?()
A.A
B.B
C.C
D.D -
单项选择题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom-templated server control. You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page. Which interface should you implement?()
A.the ITemplatable interface
B.the INamingContainer interface
C.the IRequiresSessionState interface
D.the IPostBackDataHandler interface
