简体   繁体   中英

Page load captcha not load in webbrowser

I am using webbrowser into Windows application. When webbrowser navigate first time, there is no problem. But calling second time webbrowser navigate captcha does not change.

private void button1_Click(object sender, EventArgs e)
{
    webBrowser1.Navigate("uyg.sgk.gov.tr/SgkTescil4a");
    webBrowser1.ScriptErrorsSuppressed = true;
    webBrowser1.AllowNavigation = true;
}

To prevent page caching on your client, which may be the reason why you see the Captcha not changing use

webbrowser1.Refresh(WebBrowserRefreshOption.Completely).

to clear the cache. If its not a client side caching issue, then its a problem with the website.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM