This is a migrated thread and some comments may be shown as answers.

RadAsyncUpload in UpdatePanel on Windows XP

1 Answer 56 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Jeff Paetkau
Top achievements
Rank 1
Jeff Paetkau asked on 09 Sep 2011, 07:14 PM
Hi,

I am experiencing a very odd issue. If you have a RadAsyncUpload in an UpdatePanel on Windows XP you get the following js error:

'Error: uncaught exception: Syntax error, unrecognized expression: [object Object]'

This error appears to be related to JQuery. I get the error in any browser on Windows XP but on no browser on Windows Vista. The following code will reproduce the error:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>RadAsyncUpload in UpdatePanel on Windows XP Test</title>
</head>
<body>
    <form runat="server" enctype="multipart/form-data">
        <asp:ScriptManager runat="server" />
        <asp:UpdatePanel ID="UpdatePanel" runat="server"><ContentTemplate>
            <rad:RadAsyncUpload runat="server" MultipleFileSelection="Automatic" />
            <asp:Button runat="server" OnClick="OnClick" Text="Run Test" />
        </ContentTemplate></asp:UpdatePanel>
    </form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class _Default : System.Web.UI.Page
{
    protected void OnClick(object sender, EventArgs e)
    {
        System.Web.UI.ScriptManager.RegisterStartupScript(UpdatePanel, typeof(string), Guid.NewGuid().ToString(), "alert('Successful');", true);
    }
}

Or you can test at http://xptest.abcweblink.com/

Notice that the mere presence of the RadAsyncUpload causes the error even though it doesn't actually do anything.

Thank you for any assistance.

Jeff Paetkau

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 13 Sep 2011, 11:27 AM
Hi Jeff Paetkau,

This is a known bug in RadAsyncUpload. We have already fixed it and the fix will be available together with the upcoming service pack 1 release.

Regards,
Genady Sergeev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
AsyncUpload
Asked by
Jeff Paetkau
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or