当前位置:在线题库搜索>[单选题]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? ()的答案是什么?

问题:

[单选题]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. <%@ Master Language="C#" Src="~/article.master.cs" Inherits="article" %> 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"%>

参考答案: B

相关内容