试试在页面中调查用Jquery.js
然后
<script>
$(document).ready(function() {
$("#aaa").load("a.asp");
});
</script>

解决方案 »

  1.   

    A頁面:
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>  
        <script language="javascript" type="text/javascript"> 
         function aaa()
            {
               var question=document.all.txtCouID.value;
               window.showModalDialog("B.aspx",question,"edge:raised;scroll:0;status:0;help:0;resizable:0;dialogHeight:250px;dialogWidth:350px;center:yes;help:no;");
            }
        </script>
    </head>
    <body>
    <form runat="server" action="A.aspx">
        <asp:TextBox ID="txtCouID" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="提交" OnClientClick="aaa();" />
    </form>     
    </body>   
    </html>B頁面:
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
        <script language="javascript" type="text/javascript">
        function SetValue()
        {
           var question=window.dialogArguments;
           var newParagraph=document.getElementById("Label1");
           var newTextNode=document.createTextNode(question);
           newParagraph.appendChild(newTextNode);
           var node=newParagraph.firstChild;
           newParagraph.removeChild(node);
        }
        </script>
    </head>
    <body onload="SetValue()">
        <form id="form1" runat="server">
        <div>
            <asp:Label ID="Label1" runat="server" Text="bbbbb"></asp:Label>
        </div>
        </form>
    </body>
    </html>我不懂ASP,不曉得這個方法能不能幫到你.
      

  2.   


    这其实就是Ajax嘛。。晕楼主,还是要用Ajax的
      

  3.   

    "因为这个当遇到UTF-8问题要进行编码转换"
    这个什么意思?
      

  4.   

    <label id="label1"><img id="img1" src="a.asp"/></label>
    <input type="text" name="textfield" id="aaa"><script>
    var aaaa = document.getElementById("label1").innerTEXT;
    document.getElementById("aaa").value = aaaa;
    </script>
      

  5.   

    这两天我也在看这方面。下面这段代码能得到一个地址的源文件,不过用处不大,
    很多网页看源文件看不到动态显示的数据import java.net.URLConnection;
    import java.net.URL;
    import java.io.InputStream;
    import java.io.ByteArrayOutputStream;public class test2 {
         URLConnection conn = null;
         String all_content;    public String getData(String str_url) throws Exception{
    try {
                all_content =new  String();
                URL url = new URL(str_url);
                conn = url.openConnection();            if (conn == null)
                    return null;            InputStream ins = conn.getInputStream();             ByteArrayOutputStream outputstream = new ByteArrayOutputStream();
                byte[] str_b = new byte[1024];
                try {
                    int i = -1;
                    while ((i=ins.read(str_b)) > 0) {
                     outputstream.write(str_b,0,i);
                    }
                    all_content = outputstream.toString();
                    System.out.println(all_content);
                } catch (Exception ex) {
                    ex.printStackTrace();
                }        } catch (Exception e) {
                e.printStackTrace();
            }
           // return new String(all_content.getBytes("ISO8859-1"));
            return all_content;
        }
    }
      

  6.   

    解析xml文件有sax,dom.dom4j等,解析html也有一些开源的类库,去找个用下就好。
    百度下html  解析就好了
      

  7.   

    把asp输出的内容显示在b.htm的页面,然后用正则获取其他方法获取,然后填充。
      

  8.   

    简单的方法只可能是通过js框架,把那些XMLHTTP操作都封装了,才显得简单。