PrepAway - Latest Free Exam Questions & Answers

Category: 70-541

Exam 70-541: TS: Microsoft Windows SharePoint Services 3.0 – Application Development

Which code segment should you insert at line 03?

You create a Microsoft Windows SharePoint Services application. A SharePoint site has a list named MyList. You write the following code segment. (Line numbers are included for reference only.)

01 Dim site As SPWeb = SPControl.GetContextWeb(context)
02 Dim list As SPList = site.Lists(“MyList”)
03 …

You need to bind the list to a DataGrid control. You also need to ensure that all the fields in the list are available in the DataTable object.

Which code segment should you insert at line 03?

Which code segment should you insert at line 04?

You are creating a Microsoft Windows SharePoint Services application.

You write the following code segment. (Line numbers are included for reference only.)

01 Public Sub DownloadDocument ( ByVal web As SPWeb )
02 Dim docLib As SPDocumentLibrary = _
CType ( web.Lists (“shared Documents”), SPDocumentLibrary )
03 Const fil eShare As String = “C:\Download”
04 …
05 End Sub

You need to move each document to the C:\Download folder. You also need to remove each document from the document library.

Which code segment should you insert at line 04?

Which code segment should you insert at line 04?

You create a Microsoft Windows SharePoint Services list named Books. The list has a column named Stock that stores the total number of available books.

You write the following code segment. (Line numbers are included for reference only.)

01 Protected Overloads Overrides Sub CreateChildControls()
02 Dim myWeb As SPWeb = SPControl.GetContextWeb(Context)
03 Dim myList As SPList = my Web .Lists(“Books”)
04 …
05 Dim myGrid As DataGrid = New DataGrid
06 myGrid.DataSource = results
07 myGrid.DataBind
08 Me.Controls.Add(myGrid)
09 End Sub

You need to render a list of books for which the value in the Stock column is less than 100.

Which code segment should you insert at line 04?


Page 6 of 8« First...45678