码迷,mamicode.com
首页 > Web开发 > 详细

asp.net机器人注册原理

时间:2014-07-22 23:13:34      阅读:343      评论:0      收藏:0      [点我收藏+]

标签:winform   io   for   c   .net   app   

1.新建webapplication,添加webForm 拖拽两个TextBox,一个Button,Button单击事件中写

 File.AppendAllText("f:/a.txt",TextBox1.Text+":"+TextBox2.Text+"  ");

2.新建winform窗体,拖拽WebBrowser,属性url修改为注册页面的地址。再次拖拽button。单击事件中写

            webBrowser1.Document.GetElementById("TextBox1").SetAttribute("Value","2222");
            webBrowser1.Document.GetElementById("TextBox2").SetAttribute("Value", "bbbb");
            webBrowser1.Document.GetElementById("Button1").InvokeMember("Click");

3.运行查看效果,即为简单的机器人注册原理。

asp.net机器人注册原理,码迷,mamicode.com

asp.net机器人注册原理

标签:winform   io   for   c   .net   app   

原文地址:http://www.cnblogs.com/fanshaomin/p/3700080.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!