| Exam Code/Number: | 070-528Join the discussion |
| Exam Name: | TS: Microsoft .NET Framework 2.0 - Web-based Client Development |
| Certification: | Microsoft |
| Question Number: | 149 |
| Publish Date: | May 30, 2026 |
|
Rating
100%
|
|
You are developing a Microsoft ASP.NET Web site.
Users must be able to select a page layout of their choice.
You need to ensure that the master page can be dynamically applied.
Which code segment should you use?
You create a Microsoft ASP.NET Web site.
The SqlProvider configuration of the Web.config file contains the following code fragment.
<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="MySqlConnection"
applicationName="MyApplication" />
</providers> </membership>
You need to ensure that the Web site can store passwords securely. You also need to ensure that passwords can be retrieved.
Which code fragment should you add to the Web.config file?
You write a Web application that uses registry entries for its configuration settings.
You need to configure the Web setup project to validate the registry entries before the setup completes.
What should you do?
You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate
within the Marketing section of your Web site.
The following XML defines the site map for your site.
<siteMapNode url="~/default.aspx" title="Home" description="Site Home Page">
<siteMapNode url="Sales.aspx" title="Sales" description="Sales Home">
<siteMapNode url="SalesWest.aspx" title="West Region" description="Sales for
the West Region" />
<siteMapNode url="SalesEast.aspx" title="East Region" description="Sales for
the East Region" />
</siteMapNode>
<siteMapNode url="Marketing.aspx" title="Marketing" description="Marketing
Home">
<siteMapNode url="MarketNational.aspx" title="National Campaign"
description="National marketing campaign" />
<siteMapNode url="MarketMidwest.aspx" title="Midwest Campaign"
description="Midwest region marketing campaign" />
<siteMapNode url="MarketSouth.aspx" title="South Campaign" description="South
region marketing campaign" />
</siteMapNode>
</siteMapNode>
You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)
You are transferring records from one database to another. You need to decide whether you can use the SqlBulkCopy class to transfer the records.
What should you do?