我做了个网页PageA。在单独运行它时一切正常点击其中的按钮(button)后,是提交的,并且无任何脚本错误。但是,我将PageA嵌入框架FrameB中,点击按钮(button)就不提交了,并且也无任何脚本错误。此时,客户端脚本执行正常,就是post方法不行。

解决方案 »

  1.   

    看看你的frameb的代码,如果真如你所说是不可能不提交的
      

  2.   

    补充:frameB代码
    <DIV id="rightmenuDiv" style="VISIBILITY: visible;   ; HEIGHT: 100%  BACKGROUND-COLOR: #ff0000">
    <iframe HEIGHT="100%" name="RightMainFrame" marginWidth="0" marginHeight="0" src="PageA.aspx"
    frameBorder="0" noResize width="100%"></iframe>
    </DIV>
      

  3.   

    如果PageA.aspx单独能提交,这样写也应该可以
      

  4.   

    如果PageA.aspx单独能提交,这样写也应该可以
      

  5.   

    PageA.aspx单独能提交的话,在frame里一定也能提交,你看看是不是你提交时有写一些javascript脚本,这些脚本有哪里出错了吧!
      

  6.   

    将该控件的 AutoPostBack = True
      

  7.   

    将该控件的 AutoPostBack = falst
      

  8.   

    <DIV id="rightmenuDiv" style="VISIBILITY: visible;   ; HEIGHT: 100%  BACKGROUND-COLOR: #ff0000">
    <iframe HEIGHT="100%" name="RightMainFrame" marginWidth="0" marginHeight="0" src="PageA.aspx"
    frameBorder="0" noResize width="100%"></iframe>
    </DIV>
    你要提交到哪个界面
    取值一般都这么写 top.RightMainFrame.all("控件ID").value
      

  9.   

    多谢大家,我已经查出问题。是可能因为PageA.aspx中的TreeView控件。
    <iewc:treeview id="tvwDesigner" runat="server" SystemImagesPath="../../IEControlRuntime/treeimages/"
    Width="192px" Height="316px" BorderWidth="0px">
    <iewc:TreeNode Text="标题">
    <iewc:TreeNode Text="区域"></iewc:TreeNode>
    <iewc:TreeNode Text="公式"></iewc:TreeNode>
    </iewc:TreeNode>
    <iewc:TreeNode Text="表头">
    <iewc:TreeNode Text="区域"></iewc:TreeNode>
    </iewc:TreeNode>
    <iewc:TreeNode Text="表体">
    <iewc:TreeNode Text="区域"></iewc:TreeNode>
    <iewc:TreeNode Text="公式"></iewc:TreeNode>
    </iewc:TreeNode>
    <iewc:TreeNode Text="自定义变量"></iewc:TreeNode>
    </iewc:treeview>