BUG: Pressing ENTER on the URL Bar Does Not Reload a Posted Page (265843)
The information in this article applies to:
- Microsoft Internet Explorer 5.01 for Windows NT 4.0
- Microsoft Internet Explorer 5.0 for Windows NT 4.0
- Microsoft Internet Explorer 5.0 for Windows 2000
- Microsoft Active Server Pages
This article was previously published under Q265843 SYMPTOMS
Many Web sites use re-entrant ASP pages to implement a method known as "post-back" to process input that is submitted by users in HTML forms. The post-back method allows a form to be posted back to the same page that displays it. An ASP that implements this method to process form input is commonly known as a re-entrant ASP page. A HTTP_GET is invoked to initially display the form when the user enters the URL to the .asp or clicks on a hyperlink that points to it. When the form is filled out and submitted, the contents of the form elements are posted back to the same page by invoking a HTTP_POST. The ASP usually processes the input posted and generates a response HTML page as an acknowledgement to the user.
A convenient aspect of this method is that the URL displayed in the browser's address bar does not change during the entire process of displaying the input form, accepting user input, posting/processing the input, and displaying a response HTML page.
However, pressing the ENTER key on the browser's URL address bar when the POST version of the ASP page is displayed does not result in a reload on the GET version of the page that displays the blank input. Re-entering the URL in the address bar and pressing ENTER also results in a reload of the POST version of the page.
RESOLUTION
There are several workarounds for this problem:
- Mouse-click the BACK button in the browser when the POSTED version of the page is displayed to issue a HTTP_GET that displays the empty form to accept fresh user input.
- Include a hyperlink in the Response page generated by the POST operation that points back to the URL of the page. Click this hyperlink in the browser when the POST version of the page is displayed to reload the GET version and display the blank input form.
- If the form was initially displayed by keying in the URL to access it, then selecting the URL from the drop-down portion of the browser's address bar results in a reload of the GET version of the page.
NOTE: This needs to be done only once. Directly pushing ENTER on the URL address bar of the POSTED page for every subsequent POST has been noticed to initiate a reload of the GET version of the page.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kbBug kbpending KB265843 |
---|
|