I have an application in C# which uses a WebBrowser
control.
On one page the user can click a button to process some information and navigate to a new page. The issue is that when the user clicks this button the WebBrowser
just seems to stop.
I handle the Navigating
, Navigated
and DocumentCompleted
events in my code and I see the Navigating
event but then nothing else.
This is the HTML for the button being clicked:
<div class="right button-wrapper">
<div class="clearfix right">
<span id="nextbutton"
class="button-link button-link btn-reg btn-blue-reg">
<span class="hasHover"><a id="btnPay"
href="javascript:void(0);" class="buttons">Next:Pay and Print</a>
</span>
</span>
</div>
</div>
Buttons on other pages can be clicked with no issues.
I am assuming it has something to do with the href="javascript:void(0);"
portion of the HTML but do not know why. In a browser such as IE or Firefox when this button is clicked something like a progress bar appears and say "Processing" for a few seconds and then the next page loads.
I should mention that the Navigating handler fires twice and then the page freezes.
No comments:
Post a Comment