Hi. i Have a very strange problem. I'm using a AjaxFileUpload inside a FieldTemplate with DynamicData (ajax.ascx file)
When i use it in a list.aspx page (inside a gridivew cell) everything works fine
When i go in Insert/Edit mode, and the control is inside a Detailview cell, It does't work. When i click on upload, i receive only (error) message in red. No Server side event. No javascript debugger event.
SOmeone have some idea? then i receive (error) in red, where is a way to see why I received this error?
"The AjaxFileUpload control also supports a drag-and-drop interface. You can add multiple files to the AjaxFileUpload upload queue by dragging the files onto the AjaxFileUpload control on a page. Alternatively, you can select multiple
files to upload by using the SHIFT key or CTRL key when selecting files with the file upload dialog. These features are not supported by older browsers. "
kuria
Member
5 Points
41 Posts
AjaxFileUpload (error)
May 25, 2012 01:51 PM|LINK
Hi. i Have a very strange problem. I'm using a AjaxFileUpload inside a FieldTemplate with DynamicData (ajax.ascx file)
When i use it in a list.aspx page (inside a gridivew cell) everything works fine
When i go in Insert/Edit mode, and the control is inside a Detailview cell, It does't work. When i click on upload, i receive only (error) message in red. No Server side event. No javascript debugger event.
SOmeone have some idea? then i receive (error) in red, where is a way to see why I received this error?
this is an URL with the 2 screenshot
http://www.ked2.it/screen1.png
http://www.ked2.it/screen2.png
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: AjaxFileUpload (error)
May 25, 2012 01:59 PM|LINK
is the grid within updatepanel ?
kuria
Member
5 Points
41 Posts
Re: AjaxFileUpload (error)
May 25, 2012 02:01 PM|LINK
Yes. But both (detailview and gridview) are inside an updatePanel
this is an URL with the 2 screenshot
http://www.ked2.it/screen1.png
http://www.ked2.it/screen2.png
majarajaking
Member
480 Points
432 Posts
Re: AjaxFileUpload (error)
May 26, 2012 05:57 AM|LINK
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AsyncFileUpload/AsyncFileUpload.aspx
kuria
Member
5 Points
41 Posts
Re: AjaxFileUpload (error)
May 26, 2012 09:07 AM|LINK
I need to use this one http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AjaxFileUpload/AjaxFileUpload.aspx because i need this features
"The AjaxFileUpload control also supports a drag-and-drop interface. You can add multiple files to the AjaxFileUpload upload queue by dragging the files onto the AjaxFileUpload control on a page. Alternatively, you can select multiple files to upload by using the SHIFT key or CTRL key when selecting files with the file upload dialog. These features are not supported by older browsers. "
thanks for any suggest.
chetan.sarod...
All-Star
65839 Points
11163 Posts
Re: AjaxFileUpload (error)
May 28, 2012 03:10 AM|LINK
Please refer this
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AjaxFileUpload/AjaxFileUpload.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
kuria
Member
5 Points
41 Posts
Re: AjaxFileUpload (error)
May 28, 2012 06:53 AM|LINK
Yes i red it. And where is no information about my problem...
Song-Tian - ...
All-Star
43705 Points
4304 Posts
Microsoft
Re: AjaxFileUpload (error)
May 28, 2012 10:51 AM|LINK
Hi,
Please post some related code.
Feedback to us
Develop and promote your apps in Windows Store
kuria
Member
5 Points
41 Posts
Re: AjaxFileUpload (error)
May 28, 2012 11:35 AM|LINK
FILE ASCX
<%@ Control Language="C#" CodeFile="Ajax.ascx.cs" Inherits="Text_EditField" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <asp:AjaxFileUpload ID="AjaxFileUpload1" runat="server" onuploadcomplete="AjaxFileUpload1_UploadComplete" ThrobberID="loader" /> <asp:Image ID="loader" runat="server" ImageUrl ="~/Masterpages/images/loading2.gif" Style="display:None"/>
FILE ASCX.CS
public partial class Text_EditField : System.Web.DynamicData.FieldTemplateUserControl {
protected void AjaxFileUpload1_UploadComplete(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e) { string filename = System.IO.Path.GetFileName(e.FileName); string _urlCompleto = Variabili.DirectoryFileDocenti + @"\" + filename; }
}
Screenshowt LIST.aspx page (dynamic data)
http://www.ked2.it/screen1.png
Screenshot Edit.aspx page (dynamic data)
http://www.ked2.it/screen2.png
Song-Tian - ...
All-Star
43705 Points
4304 Posts
Microsoft
Re: AjaxFileUpload (error)
May 29, 2012 09:22 AM|LINK
Hi,
The code above seems no problem. Could you post more code of that, so I may reproduce your scenario.
Feedback to us
Develop and promote your apps in Windows Store