Online Access Free 70-528 Exam Questions

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

Question 1

You are creating a Microsoft ASP.NET Web site.
You need to store authorization-related information on each user's client computer.
Which code fragment should you use?

Question 2

You create a Web application.
In the Web.config file, you need to enable personalization for anonymous users of the Web application.
What should you do?

Question 3

You are creating a Web application to process XML data. A section of the XML data is shown below.
<?xml version="1.0" encoding="utf-8" ?>
<Books>
<Book Price="9.99" NumPages="200" QtyAvailable="15" >
<Author>Fred</Author>
<Title>Fred's Book</Title>
</Book>
<Book Price="19.99" QtyAvailable="5" NumPages="400" >
<Author>Bob</Author>
<Title>Bob's Book</Title>
</Book>
</Books>
You are using an XmlReader object named reader to parse each element in the XML data.
You need to retrieve the QtyAvailable attribute for each book.
Which code segment should you use?

Question 4

You develop a Web application that writes data to a file on a server. You restrict access to the file to specific Windows users.
The Web application runs as CONTOSO\ASPNET. You deny anonymous access to the application in IIS.
You add the following XML segment in the Web.config file.
<authentication mode="Windows"/>
You need to ensure that the application meets the following requirements:
It must impersonate the user when it writes data to the file.
It must run as CONTOSO\ASPNET when a user does not access the file.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Question 5

You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.
if (Page.User.Identity.Name != @"CONTOSO\Administrator") { Response.Redirect("login.aspx"); }
You are logged on as Administrator. When you display the page, you are redirected to Login.aspx.
You discover that the User.Identity.Name property is not being correctly populated.
You need to ensure that you can access the page when you are logged on as Administrator.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Add Comments

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

insert code
Type the characters from the picture.