多项选择题

你正在创建一个包含 TreeView 控件的 Web 窗体。其中,TreeView 控件只允许用户在站点导航配置文件 Marketing 节范围内进行导航。下面是站点导航 XML 配置文件的定义:现在,你需要绑定站点导航数据到TreeView控件上,并且让用户只能在Marketing节范围内进行导航。请问,你应该执行下面那三个步骤达到此目的?()

A. 增加一个SiteMapDataSource控件到Web窗体,并且绑定到TreeView 控件。
B. 增加一个SiteMapPath控件到Web窗体,并且绑定到TreeView控件。
C. 嵌入上述站点导航XML定义到Web.sitemap文件的SiteMap节点内。
D. 嵌入上述站点导航XML定义到Web.config文件的AppSettings节点内。
E. 设置SiteMapDataSource 控件的StartingNodeUrl属性值为~/Marketing.aspx。
F. 设置SiteMapPath 控件的SkipLinkText属性值为Sales。


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

你正在开发一个 Web 应用。这个 Web 应用使用 GridView 控件去显示数据。现在,你可以增加一个 Web 窗体,然后通过拖放在服务资源管理器的数据连接树上的表到这个 Web 窗体上来进行数据的显示。为此,你需要使用如下图的增加连接对话框创建一个数据连接。在整个处理的过程中,你需要为你的数据源配置数据提供程序;请问,你应该怎么做?()

A. 在连接上点击右键,然后单击属性,修改数据连接的数据提供程序属性。
B. 单击“更改”按钮,然后为选择的数据源改变数据提供程序。
C. 单击“高级”按钮,然后改变Data Source属性值为目标提供着。
D. 单击“高级”按钮,然后改变 Application Name 属性值为目标提供着。

2.多项选择题

你正在读入一个名为 doc 的 XML 文档,其内容如下()
 

A. foreach (XmlNode node in nodes){ node.Attributes[0].Value = “NA”;}
B. foreach (XmlNode node in nodes){ node.Attributes[1].Value = “NA”;}
C. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“/genre”); genre.Value = “NA”;}
D. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“@genre”); genre.Value = “NA”;}
E. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“genre”); genre.Value = “NA”;}

3.单项选择题你正在创建一个处理 XML 文档的 Web 应用。这个 Web 应用实现从不同的源接收 XML 文档,然后读取文档并把它存储到 SQL SERVER 数据库中。已知,Web 应用会分析所有传入的文件,看他们是否符合某个 XML 架构。为此,你需要找到 XML 文档中所有的验证错误,你应该怎么做?()

A.使用XmlDocument对象读取XML数据,同时指定相应架构文件。
B.为XmlReader对象的XmlReaderSettings设置ValidationEventHandler;
C.使用DataSet对象读取XML文件,并且设置EnforceConstraints属性为True;
D.使用DataSet对象读取XML文件,并且在DataSet.MergeFailed事件中分析数据看是否符合XML架构。

4.单项选择题当 Web 应用关闭后,你需要人工释放资源。为此,你应该响应哪一个事件?()

A.Application_BeginRequest
B.Application_End
C. Application_Start
D.Application_EndRequest

5.多项选择题你如何重定向一个指定页面到桌面计算机或移动设备?()

A.if (Request.Browser["IsMobileDevice"] == "true") Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if
B.if (Request.Cookies.IsMobileDevice) Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if
C.if (Request.Browser.IsMobileDevice) Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if
D.if (Request.Cookies["IsMobileDevice"] == "true") Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if


7.多项选择题下面哪一些ASP.NET控件在mobile设备上和标准控件提供了相似的功能?()

A.LinkButton
B.Label
C.RadioButton
D.Table
E.Button

8.单项选择题默认情况下,在 Microsoft Windows XP 系统上,IIS 通过匿名用户请求资源的时候,ASP.NET 使用什么安全上下文?()

A.Guest 账号
B.Network Service 账号
C.请求 Web 页的账号
D.ASP.NET 账号

最新试题

You create a Web site with membership and personalization enabled. You must use an existing CRM database for storing the membership information. You need to implement the Membership Provider.What should you do?()

题型:单项选择题

You create a Web site that is for members only. The behavior of the Web site changes according to the role of the user. The Web site uses the ASP.NET Membership control for creation of user accounts. You need to find out whether a user is a member of a particular role.What should you do?()

题型:单项选择题

ou are developing a chat forum for the Certkiller .com Web site. You are using ASP.NET 2.0 to develop the chat forum. You are developing a Web Form that allows a subscriber to alter enter their account details. The page contains the following code snippet.You need to programmatically hide the TextBox control based on other input.What should you do?()

题型:单项选择题

You recently developed a Web application that accesses an external Web service to retrieve current exchange rates for Certkiller .com's e-Commerce Web site. The Web service converts USD prices to the customer's local currency. You have stored the URL to the external Web service's endpoint in the section of the Web.config file. The Web application has been successfully deployed to a Certkiller .com Web server named Certkiller -SR14. A few months later the vendor of the Web service changes the port that is used to access the Web service. You need to update the section of the Web application's Web.config file from Certkiller -WS528. You need to ensure that your solution has a minimal impact on customers that may be connected to the e-Commerce Web site.What should you do?()

题型:单项选择题

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?()

题型:多项选择题

You want to enable users of a Web application to modify the Web application's UI and behavior. These modifications must be maintained at the user level so that when users return to the Web application, the changes are still in effect. You need to achieve this goal by using the minimum amount of custom code.What should you do?()

题型:单项选择题

You are developing a page named Products.aspx in a Web application that contains three DropDownList controls that are dynamically loaded from a SQL Server 2005 database file. The DropDownList controls represent a vendor list, a certification list, and an exam list. Certkiller .com customers use the Products.aspx page to select exams related to particular certifications on offer from a particular vendor. A Go button initiates the selection. Each DropDownList control has an associated RequiredFieldValidator control.Whenever the customer selects a vendor, and the vendor offers certifications, then the customer must also select a certification if the. If the vendor only offers exams and not certifications, the certification list should remain hidden. Whenever the customer selects a certification, the customer must also select an exam. Validation error messages should only be displayed when the Go button is clicked. You need to set properties on the vendor DropDownList control.What should you do?()

题型:单项选择题

You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment.You need to ensure that the wizard automatically sends an e-mail message to users when they finish creating their accounts. You add a valid element to the Web.config file.Which code segment should you add to the Page_Load event?()

题型:单项选择题

Certkiller .com's e-Commerce Web application contains a page named Products.aspx that uses data source and data-bound server controls. Customers use the server controls to search for products. The Products.aspx page does not have an associated code-behind file. You need to convert the Products.aspx page to a user control so that its functionality can be reused on other pages.What should you do?()

题型:多项选择题

You create a Web Form. The Web Form uses the FormView control to enable a user to edit a record in the database. When the user clicks the Update button on the FormView control, the application must validate that the user has entered data in all of the fields. You need to ensure that the Web Form does not update if the user has not entered data in all of the fields.Which code segment should you use?()

题型:单项选择题