vtiRefreshDocument

C++: void vtiRefreshDocument(LPCTSTR szPageUrl, 
LPCTSTR szWebUrl);
VB: vtiRefreshDocument (PageUrl as String, WebUrl as String)

Description

This command immediately reloads the named page into the FrontPage Editor from the web, overwriting any previous unsaved changes which have been made to the page.

Return Value

None.

Parameters

The typical usage is to pass in the full PageUrl and leave WebUrl empty. But for convenience, you can specify the WebUrl as an absolute URL and the PageUrl as a web-relative URL.

PageUrl is the either the absolute URL of the page, or a web-relative URL of the page that you want to reload into the Editor.

WebURL is either NULL (if you specify a full PageUrl) or the URL of the FrontPage web which contains PageUrl.

Examples:

vtiRefreshDocument(“http://www.microsoft.com/status/january.htm”, NULL);

vtiRefreshDocument(“status/january.htm”, “http://www.microsoft.com”);