JAVASCRIPT
自己搜下吧
不要太多啊
如果你是在找不到,我再写个给你

解决方案 »

  1.   

    很多办法,session,cookie,post,get,stateview .......
      

  2.   


    parent.frames.FrameName.document.getElementById("ly").innerText="111111111";
    //FrameName就是指的其上层frame的的名字.
      

  3.   

    传递少的数据 session,cookie,post都可以 的 
    多的   private void Page_Load(object sender, System.EventArgs e)
    {
    // 在此处放置用户代码以初始化页面

    bind();
    }
    void bind()
    {
    SqlConnection conn=new SqlConnection("server=.;database=shuiku;uid=sa;pwd=;");
    string sql="select * from xxb where xxid="+Request.QueryString["xxid"];
    SqlDataAdapter da=new SqlDataAdapter(sql,conn);
    DataSet ds=new DataSet();
    da.Fill(ds);
    TextBox11.Text=ds.Tables[0].Rows[0][0].ToString();
    this.TextBox1.Text=ds.Tables[0].Rows[0][1].ToString();
    TextBox2.Text=ds.Tables[0].Rows[0][2].ToString();
    TextBox6.Text=ds.Tables[0].Rows[0][3].ToString();
    TextBox4.Text=ds.Tables[0].Rows[0][4].ToString();
    TextBox5.Text=ds.Tables[0].Rows[0][5].ToString();
    TextBox7.Text=ds.Tables[0].Rows[0][6].ToString();
    TextBox8.Text=ds.Tables[0].Rows[0][7].ToString();
    TextBox9.Text=ds.Tables[0].Rows[0][8].ToString();
    TextBox3.Text=ds.Tables[0].Rows[0][9].ToString();

    }
      

  4.   

    将画面1做为一个类
    用Session保存
    画面2中取出转换.
      

  5.   

    session,静态变量,cookies,getset
      

  6.   


    你没有理解楼主的意思
    楼主是一主框架有两个子框架
    在两个子框架中互传
    楼主我的理解是对的吧。哈哈我已经写好了。哈哈
    如果还没有人正确回答的话,楼主你留下EMAIL我发给你吧
    我只是想看看CSDN上到底有多少高人
    几个版主算,SP1234算是一个
    其它的还没有发现。楼主你做这个有什么用啊
    我指功能,做无刷新聊天室??
      

  7.   

    不好意思了yfqvip
    我纠正我的言论
    呵呵
    yfqvip也是对的。我试了下。这样也是可以的。
    稍微改正下
    parent.frameName.document.getElementById("####").value
    就可以了
    还有就是
    window.top.frameName.document.formName.ControlId.value也是可以访问的你要具体的话我也写好了
      

  8.   

    saucer都有点像是传奇中的人物了。
      

  9.   

    最简单是session啦,比如你登录后,要登录页面A传递userName到页面B,就先在A中        if (UserName!= null)
            {          Session["UserName"] = UserName;
         }再到页面B中UserName= Session["UserName"].ToString();就行了,这只是一个举例,具体看你要传什么了!!!
      

  10.   

    function trans()
    {
    var totext=top.frames["frame1"].text1.innerText;
    window.parent.document.all.Text2.value = totext;
    }上述方法简单实用,稍微改下就行
      

  11.   

    楼主没有说明确情况如果是你的同一个站点下的两个页面,上面各位的代码都可以实现如果是同一个主域下,也可以实现如果两个frame是不同的站点,那无法传递
      

  12.   


    如果是纯前台传值的话就用这种可以后台的最简单是用session了
      

  13.   

      public void Fitxt()
        {
            SqlConnection sqlcon = new SqlConnection(ConfigurationManager.ConnectionStrings["sql_con"].ToString());
            SqlCommand comm = sqlcon.CreateCommand();
            comm.Connection = sqlcon;
            comm.CommandType = CommandType.Text;
            comm.CommandText = "select * from Iynew where id=" + NId;
            comm.Connection.Open();
            SqlDataReader dr = comm.ExecuteReader();
            dr.Read();
       //     this.DropDownList1.Items.FindByValue(NId.ToString()).Selected = true;
            this.Ntitle.Text = dr["Ntitle"].ToString();
            Session["Picpath"] = dr["Npic"].ToString();
            this.Adate.Text = dr["Adddate"].ToString();
            this.source.Text = dr["AritSource"].ToString();
            this.editor.Text = dr["Ariedit"].ToString();
            this.Editor1.Text = dr["NCon"].ToString();
            if (dr["Nshow"].ToString() == "1")
            {
                this.sh.Checked = true;
            }
            if (dr["Ntop"].ToString() == "1")
            {
                this.top.Checked = true;
            }
            dr.Close();
            comm.Connection.Close();
            comm.Dispose();
            sqlcon.Dispose();
        }