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: | Jul 31, 2026 |
You create a Microsoft ASP.NET Web application. The application contains a Mobile Web Form.
You need to ensure that the Mobile Web Form can display a large volume of text across multiple pages.
What should you do?
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?
You are creating a Microsoft ASP.NET Web application that allows customers to transfer money between their bank accounts.
You write the following code segment. (Line numbers are included for reference only.)
01 Using cn As New SqlConnection()
02 cn.ConnectionString = strConnString
03 cn.Open()
04 Using tran As SqlTransaction = cn.BeginTransaction()
05 Try
07 Catch xcp As Exception
08 lblMessage.Text = xcp.Message
09 tran.Rollback()
10 End Try
11 End Using
12 End Using
You need to ensure that the transfer operation executes within a transaction.
Which code segment should you insert at line 06?
You are developing a Web application. The Web application uses the following code segment to connect to a database.
conn.ConnectionString = "Server=(local);Initial Catalog=NorthWind;Integrated Security=SSPI;";
You create logins in Microsoft SQL Server for each user of the Web application. When you run the Web
application, you receive the following error message.
"Login failed for user 'COMPUTERNAME\ASPNET'."
You need to resolve this error.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
You are developing a Web page that will allow a user to upload a file on your Web site.
You have defined the following file upload control on the Web page.
<asp:FileUpload ID="uploadFile" runat="server" /><br />
<asp:Button ID="btnUploadFile" runat="server"
Text="Upload File"
OnClick="btnUploadFile_Click"/>
You need to verify whether a file has been selected. You also need to save the file to a subfolder named uploads on the Web site.
Which code segment should you use?