PrepAway - Latest Free Exam Questions & Answers

Category: 70-542

Exam 70-542: TS: Microsoft Office SharePoint Server 2007 – Application Development

What should you do?

Your company uses an ASP.NET Web site. You create a Microsoft Office
InfoPath form named MyForm. You are creating a custom control that is derived from the
XMLFormView class. The custom control will display MyForm within an ASP.NET page on the Web
site. You need to ensure that MyForm can be displayed within an ASP.NET page on the Web site.

What should you do?

Which code segment should you add at line 6?

You have a document library that contains .docx documents. You need to create a web part that allows users with the ability to convert documents to .aspx pages by using the default document converter. You write the following code segment:

01: Public Sub ConvertFileOpen(ByVal file as SPFile)
02: Dim pubWeb as PublishingWeb =
PublishingWeb.GetPublishingWeb(SPContext.Current.Web)
03: Dim pages as PublishingWebCollection = pubWeb.GetPublishingPages()
04: Dim title[String] = GUID.NewGUID().toString() & “.aspx”
05: Dim converterID as new GUID(“1234………7890”)
06:
07: End Sub

Which code segment should you add at line 6?


Page 14 of 15« First...1112131415