Javascript 按钮的单击事件为';t在asp.net中触发

Javascript 按钮的单击事件为';t在asp.net中触发,javascript,jquery,asp.net,Javascript,Jquery,Asp.net,我的页面中有一个按钮,您可以在这里看到: <div class="buttonPossion"> <asp:Button ID="btnFinal" runat="server" Text="دانلود مقاله" CssClass="buttonBlue" OnClick="btnFinal_Click"/> </div> 但当我点击按钮时,它不起作用。重要的是我在页面中的所有

我的页面中有一个按钮,您可以在这里看到:

  <div class="buttonPossion">
                    <asp:Button ID="btnFinal" runat="server" Text="دانلود مقاله" CssClass="buttonBlue" OnClick="btnFinal_Click"/>
                </div>
但当我点击按钮时,它不起作用。重要的是我在页面中的所有按钮都被禁用了

如果需要html代码,我可以将其包含在我的问题中

网络配置

 <?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <connectionStrings>
    <add name="DB-Conference-CivilConstruction" connectionString="Data Source=176.9.90.204,9992;Initial Catalog=DB-Conference-CivilConstruction;User ID=DB-Conference-CivilConstruction-user; password=123qweQWE@;"
      providerName="System.Data.SqlClient" />
    <!--<add name="DB-Conference-CivilConstruction" connectionString="Data Source=192.168.223.75;Initial Catalog=DB-Conference-CivilConstruction;User ID=DB-Conference-CivilConstruction-user; password=123qweQWE@;"
      providerName="System.Data.SqlClient" />-->

  </connectionStrings>
   <system.webServer>
   <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="1073741824" />
      </requestFiltering>
   </security>
 </system.webServer>

  <system.web>
    <compilation debug="true" targetFramework="4.0"/>
   <httpRuntime maxRequestLength="1048576" />
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
  </system.web>
</configuration>


最好的祝愿

如果您的eventClick调用回发并启动page_Load函数而不移动到click event hundler,并且您确定OnClick属性具有正确的event hundler名称,那么您必须检查web.config

在本节中

<appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="xxx" />
  </appSettings>

换成

<appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="5000" />
  </appSettings>

如果“MaxHttpCollectionKeys”不存在,则添加它

并在

<configuration> 
<system.web>
<httpRuntime maxRequestLength="xxx" />



它不起作用,请解释。什么不起作用?事件是否未触发?没有返回值,并且您没有获得所需的重定向?调试器可以帮助你很多,使用它。是的,确实是事件没有触发。我放置了一个新按钮,但它不再工作。如果按钮被禁用,那么你是否检查了CssClass和Div标记上的类,如果有什么东西禁用了按钮?按钮的启用是真的。让我检查cssi添加的配置文件,但是我不知道应该添加哪部分代码?不要添加配置文件。在
tag@EA有什么进展吗?让我们看看。html代码可在此处获得:
<configuration> 
<system.web>
<httpRuntime maxRequestLength="xxx" />
<configuration> 
    <system.web>
    <httpRuntime maxRequestLength="51200" />