asp.net机器人注册原理

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.运行查看效果,即为简单的机器人注册原理。

posted on 2014-04-29 20:58  范少敏  阅读(276)  评论(0编辑  收藏  举报

导航