用客户端的js做,也括弧一用服务器端的session,但product.aspx要后刷新

解决方案 »

  1.   

    Page.RegisterStartupScript("alert","top.product.document.all.TextBox1.value =  "+DataGrid1.SelectedItem.Cells[0].Text+"'";把TextBox1换成生成的input的名字
      

  2.   

    客户端js怎么得到DataGrid1里的值?
      

  3.   

    Response.Write("<script>window.parent.document.frams[2].document.all['TextBox1'].value = '" + e.Item.Cells[0].Text + "';</script")方法肯定是可以的,但不一定就对了,自己调一下
      

  4.   

    纠正一下Page.RegisterStartupScript("alert","top.product.document.all.TextBox1.value =  '"+DataGrid1.SelectedItem.Cells[0].Text+"'";
      

  5.   

    谢谢各位!
    Response.Write("<script>window.parent.document.product.all['TextBox1'].value = '" + e.Item.Cells[0].Text + "';</script>");
    这个直接可用。下班了,至尊的我明天试验,明天早上10点结贴。
    谢谢大家!