紧急求助,都需要用到什么样的类,具体怎么做?最好给点源码!

解决方案 »

  1.   

    如果点击按钮是传参的话.如www.test.com/edit.aspx?id=3
    那样可以用XMLHTTP~
      

  2.   

    绝对符合你
    http://www.cnblogs.com/ausoldier/archive/2005/08/10/211219.html
    利用WebClient实现自动添写、提交表单
      

  3.   

    打开网页 this.axWebBrowser1.Navigate("http://www.netyi.net/zc.asp");在浏览器控件加载完成后自动填写数据,提交
    private void axWebBrowser1_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
    {
    IHTMLDocument2 HTMLDocument =(IHTMLDocument2)axWebBrowser1.Document;            HTMLInputTextElement yh = (HTMLInputTextElement)HTMLDocument.all.item("yh",null);
    yh.value = this.txtName.Text + currentID;  HTMLInputTextElement pwd = (HTMLInputTextElement)HTMLDocument.all.item("pw",null);
    pwd.value = this.txtPwd.Text; HTMLInputTextElement pwds = (HTMLInputTextElement)HTMLDocument.all.item("pws",null);
    pwds.value = this.txtPwd.Text; HTMLInputTextElement who = (HTMLInputTextElement)HTMLDocument.all.item("who",null);
    who.value = this.txtQuestion.Text; HTMLInputTextElement whois = (HTMLInputTextElement)HTMLDocument.all.item("whois",null);
    whois.value = this.txtAnswer.Text; HTMLInputTextElement name = (HTMLInputTextElement)HTMLDocument.all.item("name",null);
    name.value = this.txtName.Text ; HTMLInputTextElement email = (HTMLInputTextElement)HTMLDocument.all.item("email",null);
    email.value = this.txtEmail.Text ; mshtml.HTMLSelectElement age = (HTMLSelectElement)HTMLDocument.all.item("age",null);
    age.selectedIndex = 1; mshtml.HTMLSelectElement ss2 = (HTMLSelectElement)HTMLDocument.all.item("ss2",null);
    ss2.selectedIndex = 1; mshtml.HTMLSelectElement education = (HTMLSelectElement)HTMLDocument.all.item("education",null);
    education.selectedIndex = 1; HTMLFormElement form = (HTMLFormElement)HTMLDocument.all.item("member",null);
    form.submit(); }
      

  4.   

    按钮一般是post一个表单
    建立HttpWebRequest,设定好参数,提交就行了
      

  5.   

    其实我只是要登陆一个网站,然后点击一个链接而已,那个链接执行一段代码。是LOTUS的网站。
    我现在想先问一下HttpWebRequest和Response在登陆网站输入用户名和密码的时候怎么设置,小弟从没有用过这两个类,对于直接使用HTTP协议不太明白,哪里有资料给个链接也好。
      

  6.   

    你直接POST啥设置好你的用户名和密码,就完了啥
      

  7.   

    asp.net上有资料
    我自己机器上有,现在在公司,找不到
      

  8.   

    用vb很容易解决一个webbrowser控件就办了。
      

  9.   

    这个一点难度都没有.
    来个难点的,假如点击的是WAP的网址呢?又该如何.