Microsoft Pass4sure 70-528 C# v2008-03-05 by Guitong 81 q.vce
Microsoft 70-528 Braindumps Introduction: Ultimate resource for 70-528 Braindumps
Acquiring new certifications are becoming a huge task in the field of I.T. These certifications are not easy to attain as they require professionalism and a complete dedication towards the study. More over these exams are now continuously updating and accepting this challenge is itself a task. This Microsoft 70-528 braindumps exam is an important part of Microsoft certifications and at MS. NET Framework 2.0-Web-based Client Development pass4sure 70-528 braindumps we have the resources to prepare you for this. The 5 exam is essential and core part of Microsoft certifications and once you clear the exam you will be able to solve the real time problems yourself.
QUESTION 1
You work as the Web developer at Cerp4siller .com. You have been tasked with migrating
Cerp4siller .com’s ASP-based Web page named Booklist.asp to ASP.NET.
Booklist.asp consists of a COM component named Company.BookList, which is written in Microsoft
Visual Basic 6.0. You want the migration to take place as quickly as possible, and you want to use the
minimum amount of development effort to perform it.
After opening the new page, you are presented with this error message: “Server error – The
component ‘Company.BookList’ cannot be created.”
What should you do next so that the new page is successfully opened?
A. Configure a managed component to perform the functions currently performed by the
Company.BookList component.
B. Configure the AspCompat attribute of the Page directive as True.
C. Include this code to the Page.Load event handler:
RegisterRequiresPostBack(”Company.BookList”;
D. Include this attribute to the processModel element of the Web.config file:
comImpersonationLevel = Delegate
Answer: B.
Explanation: If the older file contains calls to COM components – for example, ADO code then we must
add the AspCompat attribute to the page directive in HTML view. The aspcompat attribute forces the page
to execute in single-threaded (STA) mode.
Note: You can work with and run existing ASP pages (.asp files) as-is in Visual Studio. You can use ASP
pages and ASP.NET pages in the same project. It is useful to convert ASP pages to ASP.NET Web Forms
pages so that you can take advantage of the enhanced features of the newer architecture.
Reference: Visual Basic and Visual C# Concepts, Migrating ASP Pages to Web Forms Pages
QUESTION 2
You work as the Web developer at Cerp4siller .com. You develop a new ASP.NET page that will be used
by Cerp4siller .com’s users to choose a destination. After selecting a destination, users must be presented
with tourist information pertaining to that specific destination. To specify a destination, users select
the destination by using the countryList list box. countryList has hidden country code information.
You configure the necessary code to retrieve a cached DataTable object named touristTable. This
DataTable object holds the tourist description and a numeric country code named CountryID.
You must extract an array of DataRow objects from the DataTable object, and want to only include
tourist information for the selected county.
How will you accomplish the task?
A. Dim result As DataRow() = _
touristTable.Select( _
“CountryID = ” & countryList.SelectedItem.Text)
B. Dim result As DataRow() = _
touristTable.Select( _
“CountryID = ” & countryList.SelectedItem.Value)
C. Dim result As DataRow = _
Actualtests.org – The Power of Knowing
touristTable.Rows.Find( _
“CountryID = ” & countryList.SelectedItem.Value)
D. Dim result As DataRow = _
touristTable.Rows.Find( _
countryList.SelectedItem.Value)
Answer: B
Explanation: The DataTable.Select method gets an array of all DataRow objects that match the filter
criteria in order of primary key (or lacking one, order of addition.). The filter will compare CountryID
values. We should use Country codes and not country names. We should therefore use the Value of the
selected item, not the Text.
Reference: .NET Framework Class Library, DataTable.Select Method (String) [Visual Basic]
.NET Framework Class Library, ListControl.SelectedItem Property [Visual Basic]
Incorrect Answers
A: The ListBox.TextBox property gets or searches for the text of the currently selected item in the
ListBox. However, this would retrieve names of countries, but the filter use comparison to a
CountryID column. We must use the country code, not the country name.
C, D: The DataRowCollection.Find method is not appropriate in this scenario. It retrieves only a single
row, not an array of rows.
QUESTION 3
You work as the Web developer at Cerp4siller .com. You develop a new ASP.NET application named
Cerp4siller App03. Cerp4siller App03 will be used to send Cerp4siller .com news over the Internet.
Cerp4siller .com users select news content from an ASP.NET page. You have configured code that
creates a DataSet object named NewsItems. NewsItems holds the news content that meet the
requirements specified by the user
You write this code to create a style sheet named NewsStyle.xsl. NewsStyle.xsl will place the data in
NewsItems in HTML format:
Dim doc As XmlDataDocument = new XmlDataDocument(NewsItems)
Dim tran As XslTransform = New XslTransform()
tran.Load(”NewsStyle.xsl”)
Choose the code that must be appended to the end of the code segment to show the transformed data
as HTML text.
A. tran.Transform(doc, Nothing, Response.OutputStream)
B. tran.Transform(doc, Nothing, Request.InputStream)
C. NewsItems.WriteXml(Response.OutputStream)
D. NewsItems.WriteXml(tran.ToString())
Answer: A
Explanation: The XslTransform.Transform method transforms the XML data in the XPathNavigator using
the specified args and outputs the result to a Stream. We should use the Response.OutputStream to enable
output of text to the outgoing HTTP response stream.
Reference: .NET Framework Class Library, XslTransform.Transform Method (XPathNavigator,
Actualtests.org – The Power of Knowing
XsltArgumentList, Stream) [Visual Basic]
Incorrect Answers
B: We want to display data, not read data, so we must use Response.OutputStream not
Request.InputStream.
C, D: We want to generate HTML, not XML data. We should use the XslTransform.Transform method,
not the DataSet.WriteXml method.
Tags: 70-528, Microsoft 70-528, Pass4sure 70-528
Posted in Microsoft