Incorrect links appear in the "Select a View" area of the Allitems.aspx page after you use FrontPage 2003 to add a Web Part (833692)



The information in this article 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:
  1. 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.
  2. On the View menu, click Page.
  3. At the bottom of the document window, click Split.
  4. On the Edit menu, click Find.
  5. In the Find and Replace dialog box, in the Find what box, type the following line of code, and then click Find Next:

    <ListName xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">

  6. 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 "()" that enclose the alphanumeric characters.
  7. On the Edit menu, click Copy.
  8. At the bottom of the document window, click Design.
  9. In the left pane of the AllItems.aspx Web page, click the entries that are listed under Select a View.
  10. At the bottom of the document window, click Code. The following line of code is selected:
    <SharePoint:ViewSelector runat="server"/>
  11. Modify the line that is selected in step 10 to the following, where ListNameValue is the ListName value that you identified in step 6 earlier:

    <SharePoint:ViewSelector runat="server" list="ListNameValue"/>

    To do so, follow these steps:
    1. Position your pointer after the runat="server" entry. On the Edit menu, click Paste.
    2. Position your pointer before the ListName value that you pasted, and then type list=.
    3. Type a " character before and after the ListName value.
    For example, the line may look similar to the following:

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

  12. On the File menu, click Save.

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.

Modification Type:MajorLast Reviewed:4/1/2004
Keywords:kbprb KB833692 kbAudITPRO