Online Access Free 70-528 Practice Test

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

Question 1

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.)

Question 2

You are creating a Microsoft ASP.NET solution.
You need to ensure that the solution will support Internet browsers that use Wireless Application Protocol
(WAP) and XHTML.
What should you do?

Question 3

You are creating a Web application.
The Web application has a Web Form that contains a data grid named DgCustomers. You set the Web Form as asynchronous.
You write the following code segment in the code-behind file of the application.
public partial class _Default : System.Web.UI.Page
{
private SqlConnection connection;
private SqlCommand command;
private SqlDataReader reader;
protected void Page_Load(object sender, EventArgs e)
{
AddOnPreRenderCompleteAsync(
new BeginEventHandler(BeginAsyncOperation),
new EndEventHandler(EndAsyncOperation));
}
}
You need to retrieve and bind data from the Customers table. You also need to ensure that Web requests are not blocked during database operation.
Which two code segments should you add to the code-behind file of the Web Form? (Each correct answer presents part of the solution. Choose two.)

Question 4

You are modifying an existing Microsoft ASP.NET application.
You write the following code fragment for an ASP.NET Web Form. (Line numbers are included for reference only.)
01 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>
02 <html xmlns="http://www.w3.org/1999/xhtml">
03 <body>
04 <form id="form1" runat="server">
05 <div>
06 <asp:Panel ID="ContainerPanel" runat="server" BorderWidth="1px"
BorderStyle="Solid" BorderColor="Black">
07 Please enter your name and phone number:<br />
08 <asp:Label ID="NameLabel" runat="server" AssociatedControlID="NameTextBox"
Text="Name:" />
09 <asp:TextBox ID="NameTextBox" runat="server" /><br />
10 <asp:Label ID="PhoneLabel" runat="server"
AssociatedControlID="PhoneTextBox" Text="Phone:" />
11 <asp:TextBox ID="PhoneTextBox" runat="server" /><br />
12 <asp:Button ID="SaveButton" runat="server" Text="Save"
OnClick="SaveButton_Click" />
13 </asp:Panel>
14 </div>
15 </form>
16 </body>
17 </html>
18 <script runat="server">
19 Protected Sub SaveButton_Click(ByVal sender As Object, ByVal e As
EventArgs)
20 ' Code to save the user's name and phone number.
21 End Sub
23 </script>
You need to copy the relevant portions of the Web Form to a new ASP.NET Web user control.
Which range of line numbers should you copy to the Web user control?

Question 5

You copy a Web site from a development site to a staging site. You do not have the Web site in a source control application.
Another developer begins to fix bugs on the staging site while the development team adds features on the development site.
You need to synchronize the development site and the staging site and copy the latest version of each file to both locations.
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.