Microsoft KB Archive/822182

= You cannot change an EditForm object for a list to point to a specified file in FrontPage 2003 =

Article ID: 822182

Article Last Modified on 1/6/2006

-

APPLIES TO


 * Microsoft Office FrontPage 2003
 * Microsoft Windows SharePoint Services

-





SYMPTOMS
In Windows SharePoint Services, when you try to change the EditForm object for a list to point to a specified file, the Edit Form file does not change.

In the following example, when your run a macro that is similar to the following, you expect the EditForm object to point to the EditTest.aspx file:

Sub ListPaths

ActiveWeb.RootFolder.Files.Add &quot;EditTest.aspx&quot;, True

ActiveWeb.Lists(0).EditForm = &quot;EditTest.aspx&quot;

ActiveWeb.Lists(0).ApplyChanges

End Sub

However, in FrontPage 2003, when you right-click the modified list, click Properties, and then click the Supported Files tab, the file that the EditForm object points to does not change.



CAUSE
This behavior occurs because you cannot designate the EditForm object to point to an arbitrary Web page. When you try to change the Edit Form, New Form, or Display Form files, you can only specify a page that actually contains a form of the appropriate type for the list in question.

The page specified must contain a zone control, and there must be a webpart in the zone control that corresponds to an existing database type, to be able to specify New Form, Edit Form, or Display Form parameters. There must be a webpart of the appropriate type that corresponds to the page in question.



STATUS
This behavior is by design.

Keywords: kbprogramming kbprb kbwebpublishing KB822182

-

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

© Microsoft Corporation. All rights reserved.