PrepAway - Latest Free Exam Questions & Answers

Tag: 70-528

Which additional two code segments can you use to achieve this goal?

You load an XmlDocument named doc with the following XML.

<bookstore>
<books>
<book genre="reference" >
<title>Dictionary</title>
</book>
<book genre="reference" >
<title>World Atlas</title>
</book> </books>
</bookstore>

You need to change the value for the genre attribute to NA for all book attributes. First, you add the following code segment to your class.

XmlElement root=doc.DocumentElement;
XmlNodeList nodes=root.SelectNodes("books/book");

Which additional two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

What code segment should you use?

You have developed a custom control named ProductsGrid and a custom control named DropDownGrid that will be used in the redevelopment of Domain.com’s e-Commerce Web application. Both customs control are contained in an assembly named ck_controls.dll. You need to add the two custom controls to the Visual Studio toolbox. However, when you attempt to add the custom controls to the Visual Studio toolbox, you can select the assembly that contains in the Choose Toolbox Item dialog box, only the DropDownGrid control appears in the select list. You need to add an attribute to the ProductsGrid control’s class definition to that it is listed in the Choose Toolbox Item dialog box.
What code segment should you use?

What code segment should you use?

You are developing a product page named Category.aspx for Web application that will be integrated into Domain.com’s existing e-Commerce Web site. You add a user control named Selector on the Category.aspx page. The user control is implemented in ck_Select.ascx and its code-behind file is ck_Select.ascx.vb. Both ck_Select.ascx and ck_Select.ascx.vb exist in the same application as the Category.aspx page. The assembly associated with the project is named ck_Site.dll. You use the following code to declare the Selection user control on the Category.aspx page:
<ck:Selector ID="_categorySelector" runat="server" SelectorType="Category" /> The register directive for the user control was accidentally deleted from the Category.aspx page. You need to re-register the user control.
What code segment should you use?

What code segment should you use?

You are developing a Web application that must support a variety of browser. Your analysis indicates that the majority of users that will access the Web application will use Microsoft Internet Explorer 6.0 and Microsoft Pocket Internet Explorer 4.0. You are creating the header for the Web application. The header will display the Domain.com logo from a file named ck_logo.jpg. You want the logo to appear appropriately on all browsers.
What code segment should you use?

which the roryallen user account is a member.What code segment should you use?

You have developed a Web application for Domain.com’s existing Web site. The Web application implements role-based security to allow for the administration and maintenance of the Domain.com Web site. It allows certain users to administer the Web site, including the databases used by the Web site, while others are allowed to a maintain the Web site by adding and editing product information. Only Web administrators should be able to manually add users to the Web application. You discover that a user named Rory Allen has added a user account to the Web site. You also suspect that he has added his user account to various roles. You want to retrieve a list of the role of which the roryallen user account is a member.
What code segment should you use?

What code segment should you use?

You are developing a Web application for Domain.com’s intranet Web site. You want to implement a login page that authenticates users against their Active Directory user accounts. However, no all pages will require authentication. You also want users to be able to personalize the Web pages and save their personalization settings to the CKWebUsers database. You need to configure the Web application’s Web.config file to meet these requirements.
What code segment should you use?

What should you do next?

You are developing a product page named Catalog.aspx for Web application that will be integrated into Domain.com’s existing e-Commerce Web site. The Catalog.aspx page must access data from the CKProducts database. You need to use a stored procedure named sp_GetAllProducts to display data in a GridView control named _gridView. The stored procedure takes no parameters. You add a SqlDataSource control to the page.
What should you do next? (Each correct answer presents part of the solution.
Choose two.)

Which code segment should you use?

You create a Web site that is for members only. The Web site allows members to create lists of users that have access to information about member profiles. The name of the list is stored in the listName variable. The user name of the user to whom access is given is stored in the username variable. You need to enable members to manage their lists of users. Which code segment should you use?


Page 5 of 10« First...34567...10...Last »