Exam 70-562
Microsoft .NET Framework 3.5, ASP.NET Application Development
Published: August 04, 2008
Language(s): English, French, German, Japanese, Spanish, Chinese (Simplified)
Audience(s): Developers
Technology: Microsoft Visual Studio 2008
Microsoft 70-562 certification exam measures your ability to develop applications using ASP.NET in a development environment that uses Microsoft Visual Studio 2008 and Microsoft .NET Framework 3.5.
Candidates for 70-562 exam use Microsoft Visual Studio in a team-based, medium-sized to large development environment. Candidates should have a minimum of two to three years of experience developing Web-based applications by using Microsoft ASP.NET. 70-562 practice exam candidates should also have a minimum of one year of experience with the following:
Database access by using Microsoft ADO.NET classes in the Microsoft .NET Framework
Web services
State management
ASP.NET configuration
Monitoring Web applications
1. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web page that contains the following two XML fragments. (Line numbers are included for reference only.)
01 <script runat=”server”>
02
03 </script>
04 <asp:ListView ID=”ListView1″ runat=”server”
05 DataSourceID=”SqlDataSource1″
06
07 >
08 <ItemTemplate>
09 <td>
10 <asp:Label ID=”LineTotalLabel” runat=”server”
11 Text=’<%# Eval(”LineTotal”) %>’ />
12 </td>
13 </ItemTemplate>
The SqlDataSource1 object retrieves the data from a Microsoft SQL Server 2005 database table. The database table has a column named LineTotal.
You need to ensure that when the size of the LineTotal column value is greater than seven characters, the column is displayed in red color.
What should you do?
A. Insert the following code segment at line 06.
OnItemDataBound=”FmtClr”
Insert the following code segment at line 02.
protected void FmtClr
(object sender, ListViewItemEventArgs e)
{
Label LineTotal = (Label)
e.Item.FindControl(”LineTotalLabel”);
if ( LineTotal.Text.Length > 7)
{ LineTotal.ForeColor = Color.Red; }
else
{LineTotal.ForeColor = Color.Black; }
}
B. Insert the following code segment at line 06.
OnItemDataBound=”FmtClr”
Insert the following code segment at line 02.
protected void FmtClr
(object sender, ListViewItemEventArgs e)
{
Label LineTotal = (Label)
e.Item.FindControl(”LineTotal”);
if ( LineTotal.Text.Length > 7)
{LineTotal.ForeColor = Color.Red; }
else
{LineTotal.ForeColor = Color.Black; }
}
C. Insert the following code segment at line 06.
OnDataBinding=”FmtClr”
Insert the following code segment at line 02.
protected void FmtClr(object sender, EventArgs e)
{
Label LineTotal = new Label();
LineTotal.ID = “LineTotal”;
if ( LineTotal.Text.Length > 7)
{LineTotal.ForeColor = Color.Red; }
else
{ LineTotal.ForeColor = Color.Black; }
}
D. Insert the following code segment at line 06.
OnDataBound=”FmtClr”
Insert the following code segment at line 02.
protected void FmtClr(object sender, EventArgs e)
{
Label LineTotal = new Label();
LineTotal.ID = “LineTotalLabel”;
if ( LineTotal.Text.Length > 7)
{LineTotal.ForeColor = Color.Red; }
else
{LineTotal.ForeColor = Color.Black; }
}
Answer: A
Exam 70-562: TS: Microsoft .NET Framework 3.5, ASP.NET Application Development: counts as credit toward the following Microsoft certification:
Microsoft Certified Technology Specialist (MCTS): .NET Framework 3.5, ASP.NET Applications
Microsoft Certified Professional Developer (MCPD): ASP.NET Developer 3.5
Microsoft Certified Professional Developer (MCPD): Enterprise Applications Developer 3.5
December 24, 2009 | Posted by admin
Categories:
Tags:
Recent Comments