Hello, i'm getting an error when i use an imagebutton to update an updatepanel control. It only happens on IE10 running on my windows 8 machine.
The error description is: "Error en tiempo de ejecución de JavaScript: Sys.WebForms.PageRequestManagerServerErrorException: La cadena de entrada no tiene el formato correcto." on MicrosoftWebAjaxForms.js ScriptResource.axd
It never fires the "Button1_Click" event, just crash on the javascript resource. I've tested on IE9 and chrome and works perfectly.
The javascript function from the script resource is:
function Sys$WebForms$PageRequestManager$_endPostBack(error, executor, data) {
if (this._request === executor.get_webRequest()) {
this._processingRequest = false;
this._additionalInput = null;
this._request = null;
}
var handler = this._get_eventHandlerList().getHandler("endRequest");
var errorHandled = false;
if (handler) {
var eventArgs = new Sys.WebForms.EndRequestEventArgs(error, data ? data.dataItems : {}, executor);
handler(this, eventArgs);
errorHandled = eventArgs.get_errorHandled();
}
if (error && !errorHandled) {
throw error; }
}
The aspx is this:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestAjax._Default" %> <!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 runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> </div> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click" /> </Triggers> </asp:UpdatePanel> <asp:ImageButton ID="ImageButton1" runat="server" onclick="Button1_Click" /> </form> </body> </html>
the aspx.cs:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace TestAjax { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { Label1.Text = "Hice click"; } } }
Any ideas?
Thanks!