WebBrowser打开https安全链接,弹出"安全警报"(Security Alert)处理

上传者: syz00625 | 上传时间: 2019-12-21 21:13:03 | 文件大小: 667KB | 文件类型: rar
使用WebBrowser控件时,在打开https安全链接时,可能会弹出"安全警报"(Security Alert)窗口让用户确认.用户只有点击"是(&Y)"才能正常打开网页.这是多余操作.解决方法:定时监视是否有窗口弹出,如果有,获取窗口句柄,再获取窗口中的按钮"是(&Y)"或"否(&N)",模拟点击动作,自动点击"是(&Y)",打开页面.以中国铁路购票网站为例:https://www.12306.cn/mormhweb/

文件下载

资源详情

[{"title":"( 30 个子文件 667KB ) WebBrowser打开https安全链接,弹出\"安全警报\"(Security Alert)处理","children":[{"title":"WebBrowser_SecurityAlert","children":[{"title":"WindowsFormsApplication1","children":[{"title":"bin","children":[{"title":"Release","children":null,"spread":false},{"title":"Debug","children":[{"title":"WindowsFormsApplication1.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"BouncyCastle.Crypto.dll <span style='color:#111;'> 2.13MB </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.vshost.exe.config <span style='color:#111;'> 161B </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.vshost.exe <span style='color:#111;'> 22.13KB </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.exe <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.exe.config <span style='color:#111;'> 161B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Form2.resx <span style='color:#111;'> 5.87KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 497B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"WindowsFormsApplication1.pdb <span style='color:#111;'> 21.50KB </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.csproj.FileListAbsolute.txt <span style='color:#111;'> 3.26KB </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.Form2.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 7.08KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"WindowsFormsApplication1.exe <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.csproj.GenerateResource.Cache <span style='color:#111;'> 977B </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Form2.cs <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"app.config <span style='color:#111;'> 161B </span>","children":null,"spread":false},{"title":"Form2.Designer.cs <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.csproj <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"WindowsFormsApplication1.sln <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"WindowsFormsApplication1.v12.suo <span style='color:#111;'> 54.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • zhuancha :
    需要修改一下代码
    2019-06-10
  • zhuancha :
    需要修改一下代码
    2019-06-10
  • liu3zy :
    基于定时查找窗口关闭窗口的方式似是可行的,但提供代码有问题,这不是从根本上解决问题的最佳方法。
    2018-06-07
  • liu3zy :
    基于定时查找窗口关闭窗口的方式似是可行的,但提供代码有问题,这不是从根本上解决问题的最佳方法。
    2018-06-07
  • qq_31025123 :
    还可以用的。只是要改改。
    2018-01-04
  • qq_31025123 :
    还可以用的。只是要改改。
    2018-01-04
  • xjhw985077853 :
    垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾 不管用,浪费积分。
    2016-11-18
  • rex-ran :
    垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾垃圾 不管用,浪费积分。
    2016-11-18

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明