我目前正在开发一个asp.net应用程序并尝试发布一个表单数据,而我使用以下代码在表单提交时延迟:
window.document.frmlogin.action = "LoginCheck.aspx"
window.document.frmlogin.method = "post"
window.document.frmlogin.submit()
我的webconfig文件如下:
<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="true" >
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
如何优化上述代码以提交更快的表单提交