button id="button1" type="submit" 按钮类型为 submit

解决方案 »

  1.   

    默认提交给自己,你加action就会提示错误
      

  2.   

    HtmlForm默认是用post方法将数据提交到本页面,改变method或action属性没有任何作用,除非不用HtmlForm,即不要在Form 后加上 runat="server"标记。--------------------------------
    AspNetPager 免费分页控件4.2版发布,同时发布最新源代码,欢迎下载:http://www.webdiyer.com
      

  3.   

    那么我该如何让form递交到另外的叶面呢??
      

  4.   

    去掉<form>中的runat=server标记就可以了!!!
      

  5.   

    去掉<form>中的runat=server或者在Button事件中加入Response.Redirect("test2.aspx")
      

  6.   

    在服务器上运行的form(runat=server)职能递交给自己页面,修改“action”也没用的,
    你如果想递交到其他页面,则需自己定义一个客户端的form<form id="form2" action="test.aspx">
    <button id="button1" type="submit" value="改变字体">
    </form>