求助——怎么把参数传到另外一个页面,而不打开另一个页面,在线等待!

解决方案 »

  1.   

    比如说,我执行页面http://219.123.206.23/aspx.aspx?id=22 怎么才能把页面执行,而且不打开窗口?不用框架!
      

  2.   

    用Response.Transfer("http://219.123.206.23/aspx.aspx?id=22")
      

  3.   

    using System.Net;
    using System.Text;public void Send()
    {
    ASCIIEncoding encoding = new ASCIIEncoding();
    string postData = "id=22";
    byte[] data = encoding.GetBytes( postData ); HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create( "http://219.123.206.23/aspx.aspx" );
    myRequest.Method = "POST";
    myRequest.ContentType = "application/x-www-form-urlencoded";
    myRequest.ContentLength = data.Length;
    Stream newStream = myRequest.GetRequestStream();
    newStream.Write( data, 0, data.Length );
    newStream.Close();
    }
      

  4.   

    <script>
    Fuction test(id)
    var HttpReq = new ActiveXObject("MSXML2.XMLHTTP");
    HttpReq.open("POST", "result.aspx?id="+ID, false); 
    </script>
      

  5.   

    比如说,我执行页面http://219.123.206.23/aspx.aspx?id=22 怎么才能把页面执行,而且不打开窗口?不用框架!
    ---------
    除了楼上的Response.Transfer方式之外
    你还可以在页面中放一个iframe,命名用name=xxx方式,然后,用脚本如此:
    onclick="document.all("xxx").src='xx.aspx';"
    这样也可以