page_Load in iframe's page?? xx is part of the parent page, not part of iframe page, a page in iframe belongs to a totally different request

解决方案 »

  1.   

    不要用hidden用WebControl的TextBox,把它们的width设为0
      

  2.   

    把控件改为ASP控件
    <ASP:TextBox id="xx">内容</ASP:textBox>在page_Load中Request.Form["xx"]获得
      

  3.   

    request对象和response对象都是对本页面的来说的,如果想在iframe里面得到父窗口里面的值,可以用session来传递你的参数。
      

  4.   

    可以不用iframe嵌入页面,使用<!--inclue file="嵌入的页面"-->就可以用request.form这种方式获得值,我就是这样做的