asp.net机器人注册原理

时间:2014-07-22 23:13:34   收藏:0   阅读:343

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!