PrepAway - Latest Free Exam Questions & Answers

Category: 70-528

Exam 70-528: TS: Microsoft .NET Framework 2.0 – Web-based Client Development

What code segment should you use to increase the counter by one?

You have developed w Web application will be integrated into Domain.com’s existing e-Commerce Web application. The Web application contains a performance counter that records the number of requests to the Products table in the CKProducts database.
The code for the counter is shown in the following exhibit.

Dim cntr As PerformanceCounter = _
New PerformaceCounter("Table Requests", "Products", False)

You need to increase the counter by one.
What code segment should you use?

What should you do to derive the ProductsGrid class from the appropriate base class or interface?

You are developing a custom control named ProductsGrid that will be used in the redevelopment of Domain.com’s e-Commerce Web applications. The ProductsGrid control contains a TextBox control and a DropDownList control that allows for the editing of product descriptions. You need to derive the ProductsGrid class from the appropriate base class or interface.
What should you do?
(Each correct answer represents part of the solution. Choose two.)

What should you do to convert the Products.aspx page to a user control so that its functionality can be reused

Domain.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?
(Each correct answer presents part of the solution. Choose two.)

What should you do to configure the Image control to display a description of the image?

You are developing a product search page named Search.aspx for Web application that will be integrated into Domain.com’s existing e-Commerce Web site. The Search.aspx page allows customers search for products that match specific criteria. Once a product is located, you want an image of the product to be displayed. You want to use an Image control to display the image. You want to configure the Image control to display a description of the image if the image cannot be displayed in the customer’s Web browser.
What should you do?

What should you do to use programming to accomplish this task?

You are developing a default.aspx page for Web application that that supports mobile devices. The default.aspx page allows the Domain.com CEO to perform searches and reports on the Domain.com e-Commerce Web site. Controls for both search and report functionality must exist on the default.aspx page. You want only the search controls to be visible when the CEO runs a search and you want only reporting controls to be visible when the CEO reports information. You cannot use programming to accomplish this task.
What should you do?

What code segment should you use to use an XmlDocument instance named doc to change the number?

You are developing a Web application that will be integrated into the Domain.com e-Commerce Web site. You used the Load method of the XmlDocument class to load data from an XML document. The XML document is shown in the following exhibit.

You later realize that the required exams should be five and not four. You want to use an XmlDocument instance named doc to change the number of required exams to five.
exhibit What code segment should you use?

What code segment should you add for the PowerTools.vb code-behind page?

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. The Category.aspx page accesses data from the CKProducts database. You use a stored procedure named sp_GetProductsByCategory to display data in a GridView control named _gridView. The stored procedure is shown in the following exhibit.

The Category.aspx page displays products belonging to a particular category that the customers select. The category is passed as a parameter from a DropDownList control.
You want to create a PowerTools.aspx page that displays all power tools in the CKProducts database. The CategoryID for power tools is listed as 102 in the CKProducts database. You want to use a SqlCommand instance to execute the sp_GetProductsByCategory stored procedure to return the appropriate data from the CKProducts database.
exhibit What code segment should you add for the PowerTools.vb code-behind page?

Which code segment should you use to declare the control on the Web Form?

Exhibit:

You develop a Web control to manage credit card information. The Web control is shown in the exhibit.
You register the control on the Web Form by using the following code segment.

<%@ Register Assembly="CreditCardUserDetails"
Namespace="CreditCardUserDetails" TagPrefix="cc1" %>

You need to declare the control on the Web Form.
Which code segment should you use?

What should you do add input controls to the wizard steps?

You are developing a Web application for Domain.com’s existing Web site. The Web application allows for the administration and maintenance of the Domain.com Web site. The Web application contains a users.aspx page that allows administrators to manually create user accounts for the Domain.com Web site. You add a CreateUserWizard control to the users.aspx page and you do not alter any of the control’s properties.
You must add input controls to the wizard steps. However, the input controls that allow administrators to enter user information must be inserted before the Security Question and Security Answer input controls.
What should you do?

What should you do to configure IIS to allow user access to the files through the Web application?

The Web application accesses files that are secured by NTFS permissions and are located in a folder named Projects.
Several Domain.com users that have permissions to the files and are able to access the files through the corporate network, report that they cannot access the files through the Web application. You open the Web.config file for the Web application and notice the elements shown in the following exhibit.

<identity impersonate="true"/>
<authentication mode="Windows"/>

You need to configure IIS to allow user access to the files through the Web application.
What should you do?


Page 1 of 1012345...10...Last »