70-528CSharp MCTS Braindump
ExamSoon 70-528CSharp Exams
Microsoft MS.NET Framework 2.0-Web-based Client Development
O rder : 70-528CSharp Exam
Practice Exam: 70-528CSharp
Exam Number/Code: 70-528CSharp
Exam Name: MS.NET Framework 2.0-Web-based Client Development
Questions and Answers: 72 Q&As
Free 70-528CSharp Braindumps
Exam : Microsoft 70-528CSharp
Title : MS.NET Framework 2.0-Web-based Client Development
1. You create a Web Form. The Web Form allows users to calculate values and display the results in a label named
lblResults.
You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture
each unhandled exception and display it on the Web Form.
Which code segment should you use?
A. protected void Page_Error(object sender, EventArgs e) {
lblResults.Text = e.ToString();
e=null;
}
B. protected void Page_Error(object sender, EventArgs e) {
lblResults.Text = Server.GetLastError().ToString();
Server.ClearError();
}
C. protected void Page_Error(object sender, EventArgs e) {
Response.Write(e.ToString());
e=null;
}
D. protected void Page_Error(object sender, EventArgs e) {
Response.Write(Server.GetLastError().ToString());
Server.ClearError();
}
Answer: D
2. You are creating a Web Form. The Web Form allows users to rename or delete products in a list. You create a
DataTable named dtProducts that is bound to a GridView. DataTable has the following four rows.
dtProducts.Rows[0]["ProductName"] = "Soap";
dtProducts.Rows[1]["ProductName"] = "Book";
dtProducts.Rows[2]["ProductName"] = "Computer";
dtProducts.Rows[3]["ProductName"] = "Spoon";
dtProducts.AcceptChanges();
The user utilizes a Web Form to delete the first product.
You need to set the RowStateFilter property of the DataTable's DefaultView so that only products that have not been
deleted are shown.
To which value should you set the DataTables's DefaultView.RowStateFilter?
A. DataViewRowState.ModifiedOriginal;
B. DataViewRowState.ModifiedCurrent;
C. DataViewRowState.CurrentRows;
D. DataViewRow