Microsoft KB Archive/214539

= PRB: Navigator Returns "Data Missing" After Resizing the Browser =

Article ID: 214539

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q214539



SYMPTOMS
When resizing the Netscape Navigator Web browser on a page generated by a WebClass, the following error occurs:

Data Missing

This document resulted from a POST operation and has expired from the cache. If you wish you can repost the form data to recreate the document by pressing the reload button.



CAUSE
When the Netscape Navigator Web browser is resized, the browser attempts to retreive the page from its cache when repainting the window. However, the host Active Server Page (ASP) page used for instantiating the WebClass sets the Expiration date and time of the page to expire immediately and the browser will not cache the page. Also, since the requested page was retrieved as a result of an HTTP POST (for example, form submission) and the Web browser does not cache the POSTed data, Netscape Navigator is unable to repaint the page without first re-posting the data and requesting the page from the server.



RESOLUTION
You need to change the expiration data/time of the page via the Expires HTTP Header. You can do so by adding the following code to the ASP page generated by the WebClass, or in a WebItem in your WebClass:

Response.ExpiresAbsolute = #10/06/2000# 'A future expiration date

NOTE: In general, it is not recommended that you change the ASP page generated by the WebClass. Also note, you will need to add this code each time you recompile the WebClass because the ASP page will be overwritten.

The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Keywords: kberrmsg kbwebclasses kbprb kb3rdparty KB214539

-

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

© Microsoft Corporation. All rights reserved.