Microsoft KB Archive/833692

= Incorrect links appear in the &quot;Select a View&quot; area of the Allitems.aspx page after you use FrontPage 2003 to add a Web Part =

Article ID: 833692

Article Last Modified on 4/1/2004

-

APPLIES TO


 * Microsoft Office FrontPage 2003
 * Microsoft Windows SharePoint Services

-





SYMPTOMS
When you open a Microsoft Windows SharePoint Services Web site in Microsoft Office FrontPage 2003, and you add a list Web Part to the Allitems.aspx Web page of a document library or list of that Web site, you may find that when you preview the page in a Web browser, the links that appear in the Select a View area of Web page are incorrect for that document library or list. The links that appear in the Select a View area correspond to the Web Part that you added instead of to the document library or list. These symptoms occur intermittently.

For example, if you add an Announcements list to the AllItems.aspx page of the Shared Documents document library, and then you preview the page in a Web browser, the links that appear in the Select a View area correspond to the Announcements list instead of the Shared Documents document library.



CAUSE
This issue may occur if both of the following conditions are true:
 * The Allitems.aspx page of the document library or list contains several different Web Parts.
 * You drag a list from the Folder List in FrontPage to the AllItems.aspx page of a document library or list.

When the Web page contains several different Web Parts or lists, an incorrect list ID may be used to render the links that appear in the Select a View area of the AllItems.aspx page. The page may use the list ID of an existing Web Part instead of the Web Part that you added.



RESOLUTION
To resolve this issue, add an attribute to the AllItems.aspx Web page that instructs the Web page to use the correct list ID. To do so, follow these steps:  Start FrontPage 2003, open the Windows SharePoint Services Web site, and then open the Allitems.aspx Web page of the document library or the list that you want. On the View menu, click Page. At the bottom of the document window, click Split. On the Edit menu, click Find. In the Find and Replace dialog box, in the Find what box, type the following line of code, and then click Find Next:



 Select the ListName value that appears after the line that you located earlier in step 5. The ListName value is string of alphanumeric characters that may look similar to the following:

27EA1E77-24AA-4EC8-A948-997CBED3D31E

Note Make sure that you select only the alphanumeric characters. Do no select not the parenthesis characters &quot;&quot; that enclose the alphanumeric characters.</li> On the Edit menu, click Copy.</li> At the bottom of the document window, click Design.</li> In the left pane of the AllItems.aspx Web page, click the entries that are listed under Select a View.</li>  At the bottom of the document window, click Code. The following line of code is selected: <SharePoint:ViewSelector runat=&quot;server&quot;/> </li> Modify the line that is selected in step 10 to the following, where  is the ListName value that you identified in step 6 earlier:

<SharePoint:ViewSelector runat=&quot;server&quot; list=&quot; &quot;/>

To do so, follow these steps: <ol style="list-style-type: lower-alpha;"> Position your pointer after the runat=&quot;server&quot; entry. On the Edit menu, click Paste.</li> Position your pointer before the ListName value that you pasted, and then type list= .</li> Type a &quot; character before and after the ListName value.</li></ol>

For example, the line may look similar to the following:

<SharePoint:ViewSelector runat=&quot;server&quot; list=&quot;27EA1E77-24AA-4EC8-A948-997CBED3D31E&quot;/>

</li> On the File menu, click Save.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
For additional information about how to work with Web Parts in FrontPage 2003, see FrontPage Help. On the Help menu, click Microsoft Office FrontPage Help. In the Search for box, type Web Parts, and then press ENTER to view the topics that are returned.

Keywords: kbprb KB833692

-

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

© Microsoft Corporation. All rights reserved.