网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
你正在创建一个skin文件,它用来格式化Label控件的为蓝色文本、TimesNewRoman字体。你应该使用下面那一个skin文件?()
A
<asp:Label BackColor=White ForeColor=Blue Font-Name=Times New RomanFont-Size=10px />
B
<asp:Label runat=server ID=BlueLabel BackColor=White ForeColor=BlueFont-Name=Times New Roman Font-Size=10px />
C
<asp:Label ID=BlueLabel BackColor=White ForeColor=Blue Font-Name=Times New Roman Font-Size=10px />
D
<asp:Label runat=server BackColor=White ForeColor=BlueFont-Name=Times New Roman Font-Size=10px />
参考答案
参考解析
解析:
暂无解析
更多 “单选题你正在创建一个skin文件,它用来格式化Label控件的为蓝色文本、TimesNewRoman字体。你应该使用下面那一个skin文件?()A asp:Label BackColor=White ForeColor=Blue Font-Name=Times New RomanFont-Size=10px /B asp:Label runat=server ID=BlueLabel BackColor=White ForeColor=BlueFont-Name=Times New Roman Font-Size=10px /C asp:Label ID=BlueLabel BackColor=White ForeColor=Blue Font-Name=Times New Roman Font-Size=10px /D asp:Label runat=server BackColor=White ForeColor=BlueFont-Name=Times New Roman Font-Size=10px /” 相关考题
考题
在"窗体视图"显示窗体时,要求在单击命令按钮后标签上显示的文字颜色变为红色,以下能实现该操作的语句是A.Label1.ForeColor=255B.bChange.ForeColor=255C.Label1.BackColor="255"D.bChange.BackColor="255"
考题
创建一个标识有“关闭”按钮的语句是( )。A.TextField b=new TextField("关闭");B.Button b=new Burron("关闭");C.Checkbox b=new Checkbox("关闭");D.Label b=new Label("关闭");
考题
你正在创建一个 ASP.NET Web 站点,它使用主题去保证站点中所有页面的控件都保持一致的风格。请问,你的 skin 文件应该位于那个目录?()
A.App_Theme\theme_nameB.App_StyleSheetTheme\theme_nameC.App_theme_name\theme_nameD.\theme_nameE.The root application folderF. App_Themes\theme_name
考题
你正在创建一个skin文件,它用来格式化Label控件的为蓝色文本、TimesNewRoman字体。你应该使用下面那一个skin文件?()
A.asp:Label BackColor=White ForeColor=Blue Font-Name=Times New RomanFont-Size=10px /B.asp:Label runat=server ID=BlueLabel BackColor=White ForeColor=BlueFont-Name=Times New Roman Font-Size=10px /C.asp:Label ID=BlueLabel BackColor=White ForeColor=Blue Font-Name=Times New Roman Font-Size=10px /D.asp:Label runat=server BackColor=White ForeColor=BlueFont-Name=Times New Roman Font-Size=10px /
考题
本程序的功能是监听对于菜单项和工具条按钮的操作。主窗口中有菜单、工具条和一个文字标签,菜单中有“文件”项,“文件”菜单中包括菜单项“新建”、“保存”、“打印”、“页面设置”和“退出”,工具条上包括按钮“新建”、“保存”、“打印”、“页面设置”和“退出”。单击任何一个菜单项或任何一个工具条按钮,文字标签都会显示哪个构件被选中。请更正题中带下划线的部分。运行结果如下图所示。注意:不改变程序的结构,不得增行或删行。import javax.swing.*;import java.awt.*;import java.awt.event.*;public class advance extends JFrame{private JLabel actionlnfo;public advance(String titleText){setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);super(titleText);actionInfo=new JLabel("事件信息");JToolBar tb=new JTooBar();Menu file=new Menu( "文件" );JMenuBar mb=new JMenuBar();mb.add(file);NewAction na=new NewAction(actionInfo);file.add(na);tb.add(na);SaveAction sa=new SaveAction(actionInfo);file.add(sa);tb.add(sa);PrintAction pta=new PrintAction(actionInfo);file.add(pra);tb.add(pra);PageSetAction psa=new PageSetAction(actionInfo);file.add(psa);tb.add(psa);ExitAction ea=new ExitAction(actionInfo);file.add(ea);tb.add(ea);setJMenuBar(mb);Container cp=getContentPane();cp.setLayout(new BorderLayout());cp.add(tb);cp.add(actionInfo, BorderLayout.CENTER );setSize(350, 200);setVisible(true);}public static void main(String[] args){new advance("advance");}}class NewAction extends AbstractAction{JLabel label;public NewAction(JLabel label){super("新建");this.label=label;}public void actionPerformed(ActionEvent e){label.setText("您选择了新建");}}class SaveAction extends AbstractAction{JLabel label;public SaveAction(JLabel label){super("保存");this.label=label;}public void actionPerformed(ActionEvent e){label.setText ("您选择了保存");}}class printAction extends AbstractAction{JLabel label;public PrintAction(JLabel label){super("打印");this.label=label;}public void actionPerformed(ActionEvent e){label.setText ("您选择了打印");}}class PageSetAction extends AbstractAction{JLabel label;public pageSetAction(JLabel label){super("页面设置");this.label=label;}public void actionPerformed(Actio
考题
使用下图,窗体的名称为frnTest,窗体中有一个标签和一个命令按钮,名称分别为Label1和bChange 。在“窗体视图”显示该窗体时,要求在单击命令按钮后标签上显示的文字颜色变为红色,以下能实现该操作的语句是( )。A.label1.Fore(iolor=255)B.bCihange.ForeColor=255C.labell.ForeColor="255"D.bChange.ForeColor="255"
考题
本题是一个Applet,它的功能是在窗口上添加12×12个标签,并且横向和纵向标签的颜色为黑白相间。import java.applet.*;import java..awt.*;import java,.awt.event*;pubhc class java2extends Applet{GridLayout grid;pubhc void init(){grid=new GridLayout(12,12);setLayout(grid);Label =new Label[12][12];for(int i=0;i<;12;i++){for(int j=0;j<;12;j++){label[i][j]= ;if((i+j)%2= =0)label[i][j].setBackground(Color.black);elselabel[i][j].setBackground(color.white);add(label[i][j]);}}}}
考题
AWT中创建一个标识有“确定”按钮的语句是()A、TextField b = new TextField(“确定”);B、Checkbox b = new Checkbox(“确定”);C、Buttn b = new Button(“确定”);D、Label b = new Label(“确定”);
考题
创建一个标识有“关闭”按钮的语句是()。A、TextField b = new TextField(“关闭”);B、Label b = new Label(“关闭”);C、Checkbox b = new Checkbox(“关闭”);D、Button b = new Button(“关闭”);
考题
若要使标签对象上显示的文字着色设为绿色,正确的语句写法是()。A、THISFORM.LABEL1.ForeColor=RGB(0,255,0)B、THISFORM.LABEL1.BackColor=RGB(0,255,0)C、THISFORM.LABEL1.FontName=RGB(0,255,0)D、THISFORM.LABEL1.FontSize=RGB(0,255,0)
考题
You are implementing an ASP.NET Web site that will be accessed by an international audience. The site contains global and local resources for display elements that must be translated into the language that is selected by the user. You need to ensure that the Label control named lblCompany displays text in the user’s selected language from the global resource file. Which control markup should you use?()A、asp:Label ID="lblCompany" runat="server" meta:resourcekey="lblCompany" /B、asp:Label ID="lblCompany" runat="server" Text="meta:lblCompany.Text" / C、asp:Label ID="lblCompany" runat="server" Text="%$ Resources:lblCompanyText %" /D、asp:Label ID="lblCompany" runat="server" Text="%$ Resources:WebResources, lblCompanyText %" /
考题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web form and add the following code fragment: ’ / The SqlDataSource1 DataSource control retrieves the Quantity column values from a table named Products. You write the following code segment to create the rptData_ItemDataBound event handler: 01 protected void rptData_ItemDataBound(object sender, 02 RepeaterItemEventArgs e) 03 { 04 ► 05 if(lbl != null) 06 if(int.Parse(lbl.Text) 10) 07 lbl.ForeColor = Color.Red; 08 } You need to retrieve a reference to the lblQuantity Label control into a variable named lbl. Which code segment should you insert at line 04? ()A、Label lbl = Page.FindControl("lblQuantity") as Label; B、Label lbl = e.Item.FindControl("lblQuantity") as Label; C、Label lbl = rptData.FindControl("lblQuantity") as Label; D、Label lbl = e.Item.Parent.FindControl("lblQuantity") as Label;
考题
你正在创建一个名为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”;
考题
你正在创建一个 ASP.NET Web 站点,它使用主题去保证站点中所有页面的控件都保持一致的风格。请问,你的 skin 文件应该位于那个目录?()A、App_Theme/theme_nameB、App_StyleSheetTheme/theme_nameC、App_theme_name/theme_nameD、/theme_nameE、The root application folderF、App_Themes/theme_name
考题
你正在创建一个skin文件,它用来格式化Label控件的为蓝色文本、TimesNewRoman字体。你应该使用下面那一个skin文件?()A、asp:Label BackColor="White" ForeColor="Blue" Font-Name="Times New Roman"Font-Size="10px" /B、asp:Label runat="server" ID="BlueLabel" BackColor="White" ForeColor="Blue"Font-Name="Times New Roman" Font-Size="10px" /C、asp:Label ID="BlueLabel" BackColor="White" ForeColor="Blue" Font-Name="Times New Roman" Font-Size="10px" /D、asp:Label runat="server" BackColor="White" ForeColor="Blue"Font-Name="Times New Roman" Font-Size="10px" /
考题
多选题你正在创建一个自定义服务器控件。为了让你的控件能够自动使用 ASP.NET 主题特征,你应该从那个类继承?()AButtonBTemplateControlCControlDWebControlEUserControl
考题
单选题你正在创建一个名为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部件的ASP.NETWeb站点。你为Web页增加了一个WebPartZones控件。下面那个控件可以实现给WebPartZones控件增加一个Web部件。()A
ZoneTemplateB
ControlC
WebPartManagerD
WebPart
考题
单选题You are implementing an ASP.NET Web site that will be accessed by an international audience. The site contains global and local resources for display elements that must be translated into the language that is selected by the user. You need to ensure that the Label control named lblCompany displays text in the user’s selected language from the global resource file. Which control markup should you use?()A
asp:Label ID=lblCompany runat=server meta:resourcekey=lblCompany /B
asp:Label ID=lblCompany runat=server Text=meta:lblCompany.Text / C
asp:Label ID=lblCompany runat=server Text=%$ Resources:lblCompanyText % /D
asp:Label ID=lblCompany runat=server Text=%$ Resources:WebResources, lblCompanyText % /
考题
单选题你正在创建一个使用自定义 Web 部件的 ASP.NET Web 应用。你希望用户能够编辑自定义 Web部件的属性。你应该使用那一个类?()A
AppearanceEditorPartB
BehaviorEditorPartC
PropertyGridEditorPartD
LayoutEditorPart
考题
单选题若要使标签对象上显示的文字着色设为绿色,正确的语句写法是()。A
THISFORM.LABEL1.ForeColor=RGB(0,255,0)B
THISFORM.LABEL1.BackColor=RGB(0,255,0)C
THISFORM.LABEL1.FontName=RGB(0,255,0)D
THISFORM.LABEL1.FontSize=RGB(0,255,0)
考题
单选题你正在创建一个 ASP.NET Web 站点,它使用主题去保证站点中所有页面的控件都保持一致的风格。请问,你的 skin 文件应该位于那个目录?()A
App_Theme/theme_nameB
App_StyleSheetTheme/theme_nameC
App_theme_name/theme_nameD
/theme_nameE
The root application folderF
App_Themes/theme_name
考题
多选题你使用VisualStudio.NET来创建一个控件,此控件将被你的应用程序中的多个窗体使用。这是一个客户标签(Label)控件,用来检索和显示你公司当前的股票价格。控件将在很多具有不同背景的窗体中显示。你希望控件尽可能多的显示潜在的窗体,你要确保股票价格是可见的,而这个矩形控件本身并不显示出来。你需要在控件的Load事件中添加代码来完成这些需求,你该采用哪两段代码?()Athis.BackColor=Color.Transparent;Bthis.ForeColor=Color.Transparent;Cthis.BackImage=null;Dthis.SetStyle(ControlStyles.UserPaint,false);Ethis.SetStyle(ControlStyles.SupportsTransparentBackColor,true);
热门标签
最新试卷