单项选择题
You load an XmlDocument named doc with the following XML. World Atlas Dictionary You need to use an XPath query string to select the two book nodes. Which code segment should you use? ()
A. XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“.”);
B. XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“book”);
C. XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“bookstore//book”);
D. XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“books/book”);
相关考题
-
多项选择题
You create a Web site. You add an EditorZone control to the home page on the Web site. You need to enable users to customize the size and location of the Web Parts on their home pages. Which two controls should you add to the EditorZone control?()
A. BehaviorEditorPart
B. AppearanceEditorPart
C. PropertyGridEditorPart
D. LayoutEditorPart -
多项选择题
You create a Web Form that contains connected Web Parts. You write the following declaration in your Web Form. You need to ensure that your Web Part connection is valid. Which two actions should you perform? ()
A. Include a data source identified as "WebPartConnection1" on the Web Form.
B. Include a Web Part identified as "customerPart" on the Web Form.
C. Include a Web Part identified as "ordersPart" on the Web Form.
D. Ensure that you declare an interface named "IOrdersPart".
E. Ensure that you declare an interface named "ICustomerPart".
F. Ensure that each Web Part declares either a GetInterface or ProvideInterface method. -
单项选择题
You create a master page named Article.master. Article.master serves as the template for articles on your Web site. The master page uses the following page directives. You need to create a content page that uses the master page as a template. In addition, you need to use a single master page for all devices that access the Web site. Which code segment should you use? ()
A. <%@ Page Language="C#" Theme="article"%>
B. <%@ Page Language="C#" MasterPageFile="~/article.master"%>
C. <%@ Page Language="C#" ie:MasterPageFile="~/article.master"%>
D. <%@Page Language="C#" all:MasterPageFile="~/article.master"%>
