登录
首页 » C# » WebBrowser 模拟上传文件 实例

WebBrowser 模拟上传文件 实例

于 2013-04-19 发布
0 205
下载积分: 1 下载次数: 0

代码说明:

实现了模拟按键与选择文件等功能,详细实现见压缩包 对于IE7及以下,可以简单的利用SendKeys.SendWait方法设置input值,当然首先要将焦点集中在该控件上,利用HtmlElement的focus方法很容易做到。具体可以看后面的代码。但是对于IE8来说,它的安全性更高,具体参看文章http://blogs.msdn.com/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx。 对于IE8来说,file input只能模拟点击upload按钮,然后在弹出的对话框中输入文件名,然后点击确定。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • UAVPlatform0223
    osg地图,在vs2010和qt5上面搭建地图软件框架(Osg map, in the vs2010 and qt5 above the map software framework)
    2017-03-06 17:05:36下载
    积分:1
  • hailang147258
    说明:  本源码是仿真海浪运动的实例,代码有详细的注释,是初学的好例子(???)
    2008-08-30 10:27:52下载
    积分:1
  • Regedit
    C++实现的读写注册表的功能,可以直接读取某个键的值,设定某个键的值和删除某个键的值,非常方便。(Read and write C++ implementation of the registry function, you can directly read the value of a key, set the value of a key to delete a key value, very convenient.)
    2013-10-27 19:41:13下载
    积分:1
  • C# 屏幕放大镜 功能源码
    实现鼠标移动到某处后放大效果,类似Windows放大镜
    2020-12-24 23:29:04下载
    积分:1
  • jcaj
    vc 检测键盘按键 的程序源码,感兴趣的可以看看(vc test program source code of keyboard keys, can be of interest to see)
    2011-09-08 22:09:43下载
    积分:1
  • mangemaent
    存储管理的主要功能之一是合理地分配空间。请求页式管理是一种常用的虚拟存储管理技术。 本实验的目的是通过请求页式管理中页面置换算法模拟设计,了解虚拟存储技术的特点,掌握请求页式存储管理的页面置换算法。(One of the main functions of storage management is a reasonable allocation of space. The requested page style management is a common virtual storage management technology. The purpose of this study is to page through the request-type management page replacement algorithm for analog design, understanding the characteristics of virtual storage technology, master requested page storage management page replacement algorithm.)
    2010-05-29 16:05:23下载
    积分:1
  • momeyLeft
    查询系统还有多少可用内容,使用BCB编程。(Inquiry System how much content available, the use of BCB programming.)
    2009-04-20 22:02:08下载
    积分:1
  • 读取WebBrowser中的Cookies(含Session)信息 并赋值给HttpWebRequest 执行模拟网页操作
    通常大家通过 webbrowser.document.cookies 只能得到cookie但是得不到 session,这个实例也得到了session
    2013-01-05下载
    积分:1
  • pigdjas67
    说明:  By throwing an exception to indicate the occurrence of an error(By throwing an exception to indicate the occurrence of an erro)
    2018-12-25 13:29:14下载
    积分:1
  • 9513787
    xml_io_tools,可以实现xml文件的解析,只需一条语句即可,方便好用(Xml_io_tools, can be used to parse xml files. It only needs a single statement, which is convenient and easy to use.)
    2018-12-30 08:31:51下载
    积分:1
  • 696518资源总数
  • 106164会员总数
  • 18今日下载