Online Access Free 070-528 Exam Questions

Exam Code:070-528
Exam Name:TS: Microsoft .NET Framework 2.0 - Web-based Client Development
Certification Provider:Microsoft
Free Question Number:149
Posted:Sep 05, 2025
Rating
100%

Question 1

You are creating a composite control for capturing user address information in a Web application. You define a number of properties that the user can set at design time.
You need to group these properties in the Properties dialog box. In addition, you need to ensure that when users click on a particular property, they receive a short explanation of that property. The properties are shown in the exhibit.

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Question 2

You are creating a Web Form. You write the following code segment to create a SqlCommand object.
Dim conn As SqlConnection = New SqlConnection(connString)
conn.Open()
Dim cmd As SqlCommand = conn.CreateCommand()
cmd.CommandText = "select count(*) from Customers"
You need to display the number of customers in the Customers table.
Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

Question 3

You are debugging a Web application.
Users must be able to perform a search on the Search page of the application by performing the following tasks:
Selecting an item from a data-bound DropDownList control named ddlRoles
Clicking a Button control named btnSearch
The code-behind file for the Search page contains the following code segment. (Line numbers are included for reference only.)
01 protected void Page_Load(
02 object sender, EventArgs e) {
04 PopulateDropDownList();
06 }
07 protected void btnSearch_Click(
08 object sender, EventArgs e) {
09 PerformSearch(ddlRoles.SelectedItem.Value);
10 }
Each time the user clicks the Search button, the selected item in the DropDownList control is changed to the first item in the control and the search results for the first item are displayed.
You need to ensure that a user can perform a search by using the selected item as the search parameter.
Which code segment should you use to replace lines 03 through 05?

Question 4

You create a Microsoft ASP.NET Web application. The application is accessed both from desktop Web browsers and from mobile device Web browsers.
You develop a custom control. In mobile device browsers, the custom control must contain only a subset of the data displayed in the desktop browser.
You need to ensure that the application renders correctly for both desktop browsers and mobile device browsers. What should you do?

Question 5

You are developing a Web control. The Web control captures user address information in a Web
application.
You create a class named AddressControl that inherits from CompositeControl. This control consists of
child controls.
You need to ensure that the child controls are properly output to the browser.
Developers using your control must be able to set the appropriate text for labels.
In addition, they must be able to pull user address information from the associated text boxes during
postback.
What should you do?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.