调试发现点击button控件完全不会提交到后台,估计是表单都没有提交
有两个页面是这样,其他页面都没有事!!

解决方案 »

  1.   

    刚找到,原因是加了一个母版页,但是我也找不到那个母版页的问题!<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site2.master.cs" Inherits="GGW.UI.Site2" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
        <title>无标题页</title>
        <link rel="stylesheet" type="text/css" href="CSS/chromestyle.css" />
        <link rel="styleSheet" type="text/css" href="CSS/template.css"/>
        <script type="text/javascript" src="JS/chrome.js">
        </script>
        <asp:ContentPlaceHolder ID="head" runat="server">
        </asp:ContentPlaceHolder>
    </head>
    <body  >
     <form id="Form1" runat="server">
        <div id="template_layout">
         <div id="template_header">
         <div id="template_header_left"></div>
               <div id="template_header_right">
               <table width="100%" border="0px" cellpadding="0px " cellspacing="0px" height="100%">
                 <tr><td width="160px">&nbsp;</td>
                  <td align="right" width="300px">
                   <table border="0px" width="100%" cellspacing="8px" height="100px" >
                     <tr>
                     <td align="right"><a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://localhost:2311/Index.aspx');">&nbsp;加入收藏</a>&nbsp;&nbsp;&nbsp; <a href="index.aspx">返回首页</a></td>
                     </tr>
                     <tr>
                       
                       <td align="right">
                       <form action="#" method="post">
                         <input type="text"  />&nbsp;&nbsp; <input type="submit" value="搜索"/></form>
                       </td>
                     </tr>
                   </table>
                  
                  </td>
                 </tr>
               </table>
               
               </div>
               </div>
         
         <div id="template_title">
           <div class="chromestyle " id="chromemenu">
                    <ul>
                        <li><a href="Index.aspx">首页</a></li>
                        <li><a href="#" rel="dropmenu1">组织建设</a></li>
                        <li><a href="#" rel="dropmenu2">活动掠影</a></li>
                        <li><a href="#" rel="dropmenu3">互动交流</a></li>
                        <li><a href="MessageApply.aspx" target="_blank">预约留言</a></li>
                    </ul>
                </div>
                <!--1st drop down menu -->
                <div id="dropmenu1" class="dropmenudiv">
                    <a href="ArticleFile.aspx">政策规章</a><a href="AgencyMap.aspx">组织机构</a><a href="ArticleList.aspx?PartID=5"> 工作动态</a></div>
                <!--2nd drop down menu -->
                <div id="dropmenu2" class="dropmenudiv" style="width: 150px;">
                    <a href="ArticleList.aspx?PartID=6">活动信息</a><a href="ArticleList.aspx?PartID=8">通知信息</a></div>
                <!--3rd drop down menu -->
                <div id="dropmenu3" class="dropmenudiv" style="width: 150px;">
                    <a href="ArticleList.aspx?PartID=9">专家访谈</a><a href="Interaction.aspx">互动论坛</a></div>            <script type="text/javascript">
            cssdropdown.startchrome("chromemenu");            </script>
         </div>
         
         <div id="template_content">
        
          
          <div id="template_content_middle">
            <div class="index_content_common">
                  </div>
                  
                    <div>
                     <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"/>
                    </div>    
           </div>
           <div id="template_content_right">
              <div class="index_content_common">
                  <table border="0px" width="100%" cellpadding="0px" cellspacing="0px"> 
                    <tr>
                     <td><h4 style="display:inline">XXXX|English</h4></td>
                      
                     </tr>
                     </table>
                  </div>
            </div>
         </div>
            <div id="template_footer">&nbsp;版权问题</div>
         </div>
      </form>
    </body>
    </html>
      

  2.   

    找到原因了- -
    我们的美工乱复制代码...
    加了
    <form action="#" method="post">
                         <input type="text"  />&nbsp;&nbsp; <input type="submit" value="搜索"/></form>
                       </td>
      

  3.   

    没有 asp.net 服务端表单,当然......