Which two controls should you add to the page?

You are developing an ASP.NET web page.
The page must display data from XML file named Inventory.xml. Inventory.xml contains data in the following format.

You need to display Vehicle elements that have the inStock attribute set to YES.
Which two controls should you add to the page? (Each control presents part of the solution.Choose two.)
A. <asp:GridView ID=”GridView1" runat="server"
AutoGenerateColumns="True"
DataSource="inventoryXMLDataSource">
….
</asp:GridView>
B. <asp:GridView ID="GridView1" runat="server"
AutoGenerateColumns="True"
DataSourceID="inventoryXMLDataSource">
….
</asp:GridView>
C. <asp:XMLDataSource ID="InventoryXMLDataSource"
runat="server" DataFile="Inventory.xml"
XPath="/Inventory/Car[@InStock=’Yes’]">
</asp:XMLDataSource>
D. <asp:XMLDataSource ID="InventoryXMLDataSource"
runat="server" DataFile="Inventory.xml"
XPath="/Inventory/Car/InStock=’Yes’">
<Data>Inventory.xml</Data>
</asp:XMLDataSource>

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.