13.07.2015 Views

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

Microsoft SharePoint. Building Office 2007 Solutions in VB 2005 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 12 ■ SHAREPOINT OPERATIONS AND ADMINISTRATION 487End Sub'Level selectedIf Not (listEvent.Text = "empty") _OrElse Not (listTrace.Text = "empty") ThenIf _strFields(6).IndexOf(listEvent.Text) >= 0 _OrElse _strFields(6).IndexOf(listTrace.Text) >= 0 ThentblEntries.Rows.Add(strFields)End If'Noth<strong>in</strong>g selectedElsetblEntries.Rows.Add(strFields)End IfEnd IfEnd WhilegridLog.DataSource = tblEntriesgridLog.DataB<strong>in</strong>d()Catch x As Exceptionmessage.Text = x.MessageEnd TryCreat<strong>in</strong>g the Feature FileOnce the log view<strong>in</strong>g page is written, you must create a feature to add a new section to theCentral Adm<strong>in</strong>istration site that conta<strong>in</strong>s a l<strong>in</strong>k to the new page. This feature will be createdjust as you created other features <strong>in</strong> Chapter 7. First, you must create a Feature.xml file, thenyou must create a manifest file to implement the new l<strong>in</strong>k. Add a new XML file namedFeature.xml to your project and add the code from List<strong>in</strong>g 12-6.List<strong>in</strong>g 12-6. The Feature File

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!