asp.net!!!web1页面里有个文本框
我想在web2页页里选择一个集合,然后我点web2上的确定后把选择的集合里面的数据放到web1的文本框里

解决方案 »

  1.   

    1.url传值 pageload事件中判断付值
    2.session
    3.window.opener.document.getElementById("txt").value='你的数组数据';
      

  2.   

    up3.window.opener.document.getElementById("txt").value='你的数组数据';
    这种情况下  web2必须是web1 的子窗口 即需用 window.open()打开
      

  3.   

    window.open("","name1","width=100,height=200,toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100"); 

    参考
      

  4.   

    1.url传值 pageload事件中判断付值
    2.session
    3.window.opener.document.getElementById("txt").value='你的数组数据';
      

  5.   

    我写了如下脚本:    <script language=javascript>
        function aa()
        {
            window.open("F_index.aspx", "短信发送", "width=600,height=300,toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100");
            window.opener=null;
            window.close();
        }</script>
    //然后在body 里写
    <body  onload=aa()>
    但是当我运行的时候  弹出的那个窗口老是闪` 而且里面没有控件,
    我的起始页是F_index.aspx为什么会闪里面没有控件呢
      

  6.   

    还有种方法。
    在  web2 中的提交按钮设置  postbackURL属性为web1在web1中写
            protected void Page_Load(object sender, EventArgs e)
            {
                TextBox username = (TextBox)PreviousPage.FindControl("TextBox1");
                Response.Write(username.Text);
            }用controlid取值,所以想取什么取什么。
    这是2。0的新功能  1.1不支持。
      

  7.   

    同意楼上的,圣殿祭司的ASP.NET 2.0开发详解 使用C#,这本书里看来的