Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Unassigned: ajaxFileUpload hangs ie8 upon upload for every other (every odd) upload [27568]

$
0
0
AjaxControlToolkit FileVersion: 4.1.7.1005

I am not seeing why the ajaxFileUpload is hanging ie8 every odd numbered upload. Does anyone know what's going on?



I am using the Septembe 2013 release.

My web.config handlers:

<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add name="AjaxFileUploadHandler" verb="*"
path="AjaxFileUploadHandler.axd"
type="AjaxControlToolkit.AjaxFileUploadHandler,
AjaxControlToolkit"/>
</handlers>

and

<httpHandlers>
<add verb="*" path="AjaxFileUploadHandler.axd" type="AjaxControlToolkit.AjaxFileUploadHandler, AjaxControlToolkit"/>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
</httpHandlers>



My page:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ajaxFileUploadPOC.aspx.cs" Inherits="ajaxFileUploadPOC" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<AjaxControlToolkit:ToolkitScriptManager ID="Manager1" runat="server" />
<AjaxControlToolkit:AjaxFileUpload ID="AjaxUpload" runat="server" OnUploadComplete="AjaxUpload_UploadComplete" />
</div>
</form>
</body>
</html>
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AjaxControlToolkit;

public partial class ajaxFileUploadPOC : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}
protected void AjaxUpload_UploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
{
string fileName = Path.GetFileName(e.FileName);
AjaxUpload.SaveAs(@"f:\Temp\" + fileName);
}
}

Steps to reproduce:

1) run in debug mode from Vstudio 2012

2) click the "Select" button and upload a jpg

3) click the button "Upload" button once the jpg is uploaded

4) the postback will happen, and the progress bar at the bottom of ie8 will crawl and not complete.



additional steps:

5) click "Select" again, and upload another jpg

6) click the Upload button and the jpg will be uploaded

7) the postback will happen and the progress bar at the bottom of ie8 will complete

8) repeat steps 5-6, where every odd iteration will have the ie8 progress bar crawl and not complete.



Thanks,

-Pete
Comments: SAmitTyagi, I will give your suggestion a try when I get a chance. I've been busy with other projects in the meantime. -Pete

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>