Microsoft KB Archive/873020

= How to pass parameter information from one Data View Web Part to another Data View Web Part by using Web Part Connections in FrontPage 2003 =

Article ID: 873020

Article Last Modified on 5/11/2005

-

APPLIES TO


 * Microsoft Office FrontPage 2003
 * Microsoft Office SharePoint Portal Server 2003
 * Microsoft Windows SharePoint Services

-





INTRODUCTION
This article describes the steps to pass parameter information from one Data View Web Part to another Data View Web Part by using Web Part Connections in Microsoft Office FrontPage 2003 when you are authoring a Web site that is using Microsoft Windows SharePoint Services or Microsoft Office SharePoint Portal Server 2003.



MORE INFORMATION
The following example illustrates the steps that are required to pass parameter information from one Data View Web Part to another Data View Web part by using Web Part Connections in FrontPage 2003:   Create two XML files. For example, use the following sample code to create two XML files named FileOne.xml and FileTwo.xml: FileOne.xml

=
valueOne valueTwo

FileTwo.xml

=
valueThree valueFour  Create a document library on a Microsoft Windows SharePoint Web site. To do this, follow these steps:  Open a Windows SharePoint Web site. On the top link bar, click Create. On the Create Page page, click Document Library. In the Name box, type a name for the document library. For example, type MyDocumentLibrary.

Note You cannot leave the Name box empty. In the Description box, type a description of the purpose of the library.

Note The description information for the document library is optional.</li> In the Navigation section, click Yes if you want a link to this list to appear on the Quick Launch bar.</li> In the Document Versions section, click Yes if you want a backup copy of a file to be created every time that a file is checked in the document library.</li> In the Document Template section, specify the type of file to be used as a template for new files in this document library.</li> Click Create.</li></ol> </li> Import both the FileOne.xml and the FileTwo.xml files that you created in step 1 to the document library. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> On the top link bar, click Documents and Lists.</li> In the Document Libraries section, click the document library that you created in step 2.</li> Click Upload Document.</li> Click Browse to locate the FileOne.xml file, and then click the FileOne.xml file to specify the file name in the Name box.</li> Click Save and Close.</li> Repeat steps c through e for the FileTwo.xml file.</li></ol> </li> Create two Data View Web Parts in FrontPage 2003. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Start FrontPage 2003.</li> Open the Windows SharePoint Web site in FrontPage 2003.</li> Add a new Web page to the Windows SharePoint Web site, and rename theWeb page newpage.aspx.</li> <li>In the Folder List section, locate and then drag the document library that you created in step 2 to the new Web page to create a new Data View Web Part.</li> <li>In the Folder List section, under the document library that you created in step 2, locate and then drag the FileOne.xml file to the new Web page to create another Data View Web Part. The Data View Web Part will display the content of the FileOne.xml file in a bulleted list.</li> <li>Right-click the first Data View Web Part, and then click Web Part Connections.</li> <li>In the Choose the action on the source Web Part to use for this connection list, click Provide Data Values To, and then click Next.</li> <li>Under the Choose the page containing the Web Part for the connection section, click Connect to a WebPart on this page, and then click Next.</li> <li>In the Target Web Part list, select the name of the second Data View Web Part.</li> <li>In the Target action list, click Modify View Using Parameters From, and then click Next.</li> <li>In the adjacent cell that is left of the Input File text, click Name (for use in forms) from the list, and then click Next.</li> <li>Click Next.</li> <li>Click Finish to complete the connection.</li> <li>Save the newpage.aspx Web page.</li></ol> </li> <li>Verify the connection between the Data View Web Parts. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Open the newpage.aspx Web page in your browser.</li> <li>In the first Data View Web Part, click FileTwo.xml to display the FileTwo.xml file contents in the second Data View Web Part.</li> <li>Repeat step b for the FileOne.xml file.</li></ol> </li></ol>

Keywords: kbhowto KB873020

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.