Web Browser Automation from VB.net

Posted on 2007-10-03
Medium Priority
Last Modified: 2013-12-08
We have a Visual Basic .Net app  a form  a WebBrowser object. We have an automation tool that clicks on a button (like  New User ), which pulls up a popup window to enter data. When the popup window is invoked it immediately closes with this error message:

 "This page cannot be refreshed without resending the information. Click Retry to send the information again, or click Cancel to return to the page that you were trying to view."

with two buttons:  Retry  and  Cancel .

Clicking on  Retry  brings me back to the original form browser with the initial page refreshed.

Clicking on  Cancel  brings me back to the original form browser with:

 Warning: Page has Expired

"This page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

"To resubmit your information and view this Web page, click the Refresh button."

These errors prevent the popup window from loading. We turned off Internet Explorer's popup blocker, and even turned off anti-virus. We have to have a demo version of this app ready in a week and this is a show stopper!!!

Any assistance would be greatly appreciated. Thanks.
Question by:mrjrobbins
LVL 11

Accepted Solution

coopzz earned 1500 total points
ID: 20040279
this is a IE auto response when a page is asked to be refreshed (eg.F5) when the page was previously posted to it.
The way to stop this is not to refresh the page but either resubmit or go to a differing URL.

Author Comment

ID: 20086799
We found another workaround. Please close this question.  Thanks

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question