网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
你在创建一个名为 Article.master 的母版页。Article.master 作为你 Web 站点上文章的模板。这个母版页用如下的页声明:现在,你需要创建一个用此母版页作为模板的内容页面,并且要求用一个母版页就可以支持所有设备访问你的站点,你该使用下面那个代码段?()
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%>
参考答案
参考解析
解析:
暂无解析
更多 “单选题你在创建一个名为 Article.master 的母版页。Article.master 作为你 Web 站点上文章的模板。这个母版页用如下的页声明:现在,你需要创建一个用此母版页作为模板的内容页面,并且要求用一个母版页就可以支持所有设备访问你的站点,你该使用下面那个代码段?()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%” 相关考题
考题
你创建了一个名为Template.master的母版页。Template.master包含了如下的ContentPlaceHolder 服务器控件。你创建了10个Web窗体,它们都使用Template.master作为母版页。每个Web窗体有如下的Content控件和母版页的ContentPlaceHolder控件进行对应。现在,你需要配置Web页,使其当Web窗体没有提供content的时候,默认的内容将显示在area2ContentPlaceHolder控件中。你应该怎么做?()A. 在Template.master 中,移动默认内容到area2中。从不提供内容的Web窗体中移除area2。B. 在Template.master 中,移动默认内容到area2中。在不提供内容的Web窗体中留下空白的 area2 Content声明。C. 在Web窗体中,移动默认内容到area2中。在Template.master 中移除area2。D. 在Template.master中创建一个名为area2_default 的ContentPlaceHolder 控件。然后,放 默认内容在area2_default中。从不提供内容的Web窗体中移除area2。
考题
你在创建一个名为 Article.master 的母版页。Article.master 作为你 Web 站点上文章的模板。这个母版页用如下的页声明:现在,你需要创建一个用此母版页作为模板的内容页面,并且要求用一个母版页就可以支持所有设备访问你的站点,你该使用下面那个代码段?()
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%
考题
你正在开发一个包含两个母版页的 Web 应用。你需要在用户访问页面的时候动态的设置母版页,你应该如何做?()
A.在页面Page_Init事件设置Page.MasterPageFile.B.在页面OnInit事件设置Page.MasterPageFile.C.在页面Page_Load事件设置Page.MasterPageFile.D.在页面Page_PreInit事件设置Page.MasterPageFile.
考题
你需要在Web页截获所有未处理的事件并且在一个处理事件日志的方法中处理他们。已知Web页的AutoEventWireup属性设置为enabled。请问,你应该创建那一个方法?()
A.Page_ErrorB.ErrorC.Page.ErrorPageD.Application_Error
考题
有关母版页的说法,正确的是()。
A.一个站点只能有一个母版页B.一个内容页对应母版页中的一个位置ContentPlaceHoderC.内容页相当于HTML中的iframe页,浏览地址显示母版页地址D.母版页的后缀名是.master
考题
下面关于母版页和内容页使用说法错误的是哪一项()A、一个内容页可以引用多个母版页。B、内容页通过Content控件的ContentPlaceHolderID属性来指定要填充到母版页中的哪个内容块。C、内容页不可以包含D、内容页通过@Page指令的MasterPageFile属性指定所引用的母版页
考题
有关母版页的说法,正确的是()。A、一个站点只能有一个母版页B、一个内容页对应母版页中的一个位置ContentPlaceHoderC、内容页相当于HTML中的iframe页,浏览地址显示母版页地址D、母版页的后缀名是.master
考题
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="VB" CodeFile="article.master.vb" 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="VB" Theme="article"%B、%@ Page Language="VB" MasterPageFile="~/article.master"%C、%@ Page Language="VB" ie:MasterPageFile="~/article.master"%D、%@Page Language="VB" all:MasterPageFile="~/article.master"%
考题
你需要在Web页截获所有未处理的事件并且在一个处理事件日志的方法中处理他们。已知Web页的AutoEventWireup属性设置为enabled。请问,你应该创建那一个方法?()A、Page_ErrorB、ErrorC、Page.ErrorPageD、Application_Error
考题
你正在创建一个内容页,它引用了另一个开发人员开发的母版页。已知,母版页公开了几个public属性:company,street,address,city,state,和phoneNumber;现在,你需要在你的PhoneNumberTextBox控件中显示phoneNumber的值(在母版页定义的)。你应该使用那一段代码?()A、PhoneNumberTextBox.Text = Master.PhoneNumber;B、PhoneNumberTextBox.Text = this.PhoneNumber;C、PhoneNumberTextBox.Text = Content.PhoneNumber;
考题
你在创建一个名为 Article.master 的母版页。Article.master 作为你 Web 站点上文章的模板。这个母版页用如下的页声明:%@ Master Language="C#" Src="~/article.master.cs" Inherits="article" %现在,你需要创建一个用此母版页作为模板的内容页面,并且要求用一个母版页就可以支持所有设备访问你的站点,你该使用下面那个代码段?()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"%
考题
你正在创建一个名为PageBase.master 的母版页。这个母版页包含一个Label控件lblTitle。你创建了一个引用此母版页的内容页。你需要从内容页改变母版页 lblTitle 控件的 Text 属性值。你应该如何做()?A、Label lblTitle = (Label)Master.FindControl(“lblTitle”);lblTitle.Text = “Articles”;B、Label lblTitle = (Label)Parent.FindControl(“lblTitle”);lblTitle.Text = “Articles”;C、Master.Page.Title = “Articles”;D、((Label)Page.FindControl(“lblTitle”)).Text = “Articles”;
考题
你正在开发一个包含两个母版页的 Web 应用。你需要在用户访问页面的时候动态的设置母版页,你应该如何做?()A、在页面Page_Init事件设置Page.MasterPageFile.B、在页面OnInit事件设置Page.MasterPageFile.C、在页面Page_Load事件设置Page.MasterPageFile.D、在页面Page_PreInit事件设置Page.MasterPageFile.
考题
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"%
考题
你正在创建一个Web页面,它是一个使用了主题的ASP.NETWeb站点的一部分。当前,主题通过在Web.config进行配置后应用到整个站点。然而,你需要正在创建的页面不使用主题,你该如何在你的页面中禁用主题?()A、%@ Page EnableTheming="false" %B、%@ Page StyleSheetTheme="null" %C、%@ Page DisableTheming="true" %D、%@ Page Theme="null" %
考题
单选题你正在开发一个包含两个母版页的 Web 应用。你需要在用户访问页面的时候动态的设置母版页,你应该如何做?()A
在页面Page_Init事件设置Page.MasterPageFile.B
在页面OnInit事件设置Page.MasterPageFile.C
在页面Page_Load事件设置Page.MasterPageFile.D
在页面Page_PreInit事件设置Page.MasterPageFile.
考题
单选题你正在创建一个名为PageBase.master 的母版页。这个母版页包含一个Label控件lblTitle。你创建了一个引用此母版页的内容页。你需要从内容页改变母版页 lblTitle 控件的 Text 属性值。你应该如何做()?A
Label lblTitle = (Label)Master.FindControl(“lblTitle”);lblTitle.Text = “Articles”;B
Label lblTitle = (Label)Parent.FindControl(“lblTitle”);lblTitle.Text = “Articles”;C
Master.Page.Title = “Articles”;D
((Label)Page.FindControl(“lblTitle”)).Text = “Articles”;
考题
单选题你正在创建一个内容页,它引用了另一个开发人员开发的母版页。已知,母版页公开了几个public属性:company,street,address,city,state,和phoneNumber;现在,你需要在你的PhoneNumberTextBox控件中显示phoneNumber的值(在母版页定义的)。你应该使用那一段代码?()A
PhoneNumberTextBox.Text = Master.PhoneNumber;B
PhoneNumberTextBox.Text = this.PhoneNumber;C
PhoneNumberTextBox.Text = Content.PhoneNumber;
考题
单选题下面关于母版页和内容页使用说法错误的是哪一项()A
一个内容页可以引用多个母版页。B
内容页通过Content控件的ContentPlaceHolderID属性来指定要填充到母版页中的哪个内容块。C
内容页不可以包含D
内容页通过@Page指令的MasterPageFile属性指定所引用的母版页
考题
单选题你需要在Web页截获所有未处理的事件并且在一个处理事件日志的方法中处理他们。已知Web页的AutoEventWireup 属性设置为enabled。请问,你应该创建那一个方法?()A
Page_ErrorB
ErrorC
Page.ErrorPageD
Application_Error
考题
单选题母版页中使用导航控件,要求()A
母版页必须在根文件夹下。B
母版页名字必须为Web.master。C
与普通页一样使用,浏览母版页时就可以查看效果。D
必须有内容页才能查看效果。
考题
单选题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=VB Theme=article%B
%@ Page Language=VB MasterPageFile=~/article.master%C
%@ Page Language=VB ie:MasterPageFile=~/article.master%D
%@Page Language=VB all:MasterPageFile=~/article.master%
考题
单选题你创建了一个名为Template.master的母版页。Template.master包含了如下的ContentPlaceHolder 服务器控件。你创建了10个Web窗体,它们都使用Template.master作为母版页。每个Web窗体有如下的Content控件和母版页的ContentPlaceHolder控件进行对应。现在,你需要配置Web页,使其当Web窗体没有提供content的时候,默认的内容将显示在area2ContentPlaceHolder控件中。你应该怎么做?()A
在Template.master 中,移动默认内容到area2中。从不提供内容的Web窗体中移除area2。B
在Template.master 中,移动默认内容到area2中。在不提供内容的Web窗体中留下空白的 area2 Content声明。C
在Web窗体中,移动默认内容到area2中。在Template.master 中移除area2。D
在Template.master中创建一个名为area2_default 的ContentPlaceHolder 控件。然后,放 默认内容在area2_default中。从不提供内容的Web窗体中移除area2。
考题
单选题你在创建一个名为 Article.master 的母版页。Article.master 作为你 Web 站点上文章的模板。这个母版页用如下的页声明:现在,你需要创建一个用此母版页作为模板的内容页面,并且要求用一个母版页就可以支持所有设备访问你的站点,你该使用下面那个代码段?()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%
考题
单选题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%
考题
单选题有关母版页的说法,正确的是()。A
一个站点只能有一个母版页B
一个内容页对应母版页中的一个位置ContentPlaceHoderC
内容页相当于HTML中的iframe页,浏览地址显示母版页地址D
母版页的后缀名是.master
热门标签
最新试卷