C# URL重写导致javascript问题
当我在我的web.config中应用以下规则进行URL重写时,在表单中具有字段验证器的链接按钮上不会触发click events(单击事件)。删除以下代码后,所有操作都正常。你知道我该怎么做吗?单击链接按钮时出现的错误是-JavaScript运行时错误:“WebForm_DoPostBackWithOptions”未定义C# URL重写导致javascript问题,c#,asp.net,url-rewriting,C#,Asp.net,Url Rewriting,当我在我的web.config中应用以下规则进行URL重写时,在表单中具有字段验证器的链接按钮上不会触发click events(单击事件)。删除以下代码后,所有操作都正常。你知道我该怎么做吗?单击链接按钮时出现的错误是-JavaScript运行时错误:“WebForm_DoPostBackWithOptions”未定义 <rules> <rule name="Rewrite Rule 1 for StaticRewrites" stopProcessing="true
<rules>
<rule name="Rewrite Rule 1 for StaticRewrites" stopProcessing="true">
<match url=".*"/>
<conditions>
<add input="{StaticRewrites:{REQUEST_URI}}" pattern="(.+)"/>
</conditions>
<action type="Rewrite" url="{C:1}" appendQueryString="False"/>
</rule>
<rule name="Main Rule" stopProcessing="true">
<match url=".*"/>
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule>
</rules>
开发人员控制台上有404吗?IE开发人员控制台上没有404错误。