I have updated recently to IE 9 and I’m getting some strange issues.
I have a page with a Gridview in an updatepanel, grid wich has a commandfield for edit/delete records. The command fields is using image for button type. When I click on the button, I’m getting a Javascript error saying that:
Error: Sys.ParameterCountException: Parameter count mismatch.
This error only appears when I use the following combination (.NET 3.5 + IE 9 + Image type buttons). If I’m using .NET 4.0 or IE 8 or Link/Button type buttons I’m not getting the same error.
<asp:CommandField ButtonType="Image" CancelImageUrl="~/Images/undo.jpg"
DeleteImageUrl="~/Images/delete.jpg" EditImageUrl="~/Images/edit_1.jpg"
InsertVisible="False" ShowDeleteButton="True" ShowEditButton="True"
UpdateImageUrl="~/Images/accept.jpg">
</asp:CommandField>
Do you know how can I avoid this?
Thank you!
Hi I have found the solution. I have set ScriptMode=”Release” in ScriptManager. Default Value is Auto. It solved the my problem. You can also used auto for the same but you have to set
When retail is set to true, ASP.NET disables certain configuration settings such as trace output, custom errors, and debug capabilities.just set retail = true you can use ScriptMode= Auto.