谢谢
知道的告诉我一下
比如一个登录窗口
就两个文本框
那么如何写个程序自动的提交呢,就像平时别人说的自动灌水机类似

解决方案 »

  1.   

    用javascript写 setInterval( "buttonsubmit()", 2000 ) buttonsubmit()
    {
    document.getElementById("button1").submit();
    }
      

  2.   

    用javascript写个当文本框失去聚焦(onfocusout属性)且值都不为空的jsp函数来处理
      

  3.   

    构造好表单数据,然后利用HttpWebRequest来post数据
    HttpWebRequest myHttpWebRequest= (HttpWebRequest)WebRequest.Create("http://www.abc.com");string postData="firstone="+inputData;
    ASCIIEncoding encoding=new ASCIIEncoding();
    byte[]  byte1=encoding.GetBytes(postData);
    myHttpWebRequest.ContentType="application/x-www-form-urlencoded";
    myHttpWebRequest.ContentLength=postData.Length;
    Stream newStream=myHttpWebRequest.GetRequestStream();
    newStream.Write(byte1,0,byte1.Length);
    newStream.Close();
      

  4.   

    http://dotnet.aspx.cc/article/ATV1GLXT-65FF-4M82-CT5U-B1J65D3ZN2OK/read.aspx
      

  5.   

    看来看去,怎么回答的都是POST发送数据啊?
    楼主是这个意思么?
      

  6.   

    试试这样行不行:
    打开此网页,然后在地址栏输入以下内容(请更改需要更改的)javascript:var s=document.createElement('div');s.innerHTML="<iframe name=x></iframe>";document.body.appendChild(s);document.forms[0].target = "x";setInterval("document.forms[0].submit()",5000);void(0)另:通常可以使用shalen520(Love will keep us alive)的方法。
      

  7.   

    我的意思提交的时候能够在服务端以Request.Form[""]这种方式接受的,请问哪些方法可以呢?
      

  8.   

    js
    模擬提交按鈕點擊事件 或調用form的submit方法
      

  9.   

    可以在页面最后加
    <script>
    form1.submit();
    </script>form1是表单名字
      

  10.   

    shalen520(Love will keep us alive) ( ) 信誉:100    Blog  2006-10-09 14:50:00  得分: 0  
     
     
    构造好表单数据,然后利用HttpWebRequest来post数据
    HttpWebRequest myHttpWebRequest= (HttpWebRequest)WebRequest.Create("http://www.abc.com");string postData="firstone="+inputData;
    ASCIIEncoding encoding=new ASCIIEncoding();
    byte[]  byte1=encoding.GetBytes(postData);
    myHttpWebRequest.ContentType="application/x-www-form-urlencoded";
    myHttpWebRequest.ContentLength=postData.Length;
    Stream newStream=myHttpWebRequest.GetRequestStream();
    newStream.Write(byte1,0,byte1.Length);
    newStream.Close();
      

  11.   

    shoutor() 这位兄弟说得对!!可以在页面最后加
    <script>
    form1.submit();
    </script>form1是表单名字
    NB+NB
      

  12.   

    楼上的这javascript我也会写
    只是c#不知道怎么写