请问大虾:为什么我用web控件拖成的aspx页面中,已经删掉了form表单中的runat=server属性,加了action="page2.aspx",然后提交,可是为什么会报错呢? 那我怎么才能让这个页面直接提交到我的目标页面呢?并且让目标页面可以这样提取值:Request.Form["key"];

解决方案 »

  1.   

    去掉目标页面的form的runat="server"属性
      

  2.   

    用js试一试。点击时执行:
    <script language="javascript">
    function newAction()
    {
    document.form1.action="page2.aspx";
    document.form1.submit();
    }
    </script>
      

  3.   

    提交 按钮使用 html控件。。去掉runat=server
      

  4.   

    Page.RegisterOnSubmitStatement("ss","document.forms[0].action='page2.aspx'");
      

  5.   

    问题已解决,也可以用web控件,但要Server.transfer("page.aspx",true)
      

  6.   

    Click the link to solve your problem.Good luck!