I designed a asp.net form which has a fileupload control inside an update panel. I have used PostBackTrigger in update panel without which fileupload control wont work.Using Postback trigger solves the problem of File upload control not working, but on the
same page i m using UpdateProgress control, so when i use Postback trigger, the UpdateProgress Panel does not show up and page gets refreshed on click of save. Can anyone provide me solution to display Update progress.
1. On use of AysncTrigger update progress gets displayed but file wont get uploaded.
<asp:FileUpload ID="FlUpResume" runat="server" />
FlUpResume.HasFile in vb code returns as FALSE.
I need update progress and file also should get uploaded.
2. I tried to use div as progress indicator and set it visibility to true while updating. But on click of save entire page gets refreshed and progress indicator div wont get displayed.
sangameshbel...
Member
26 Points
22 Posts
Problem with Postback trigger and update panel and update progress
Apr 10, 2012 07:09 AM|LINK
I designed a asp.net form which has a fileupload control inside an update panel. I have used PostBackTrigger in update panel without which fileupload control wont work.Using Postback trigger solves the problem of File upload control not working, but on the same page i m using UpdateProgress control, so when i use Postback trigger, the UpdateProgress Panel does not show up and page gets refreshed on click of save. Can anyone provide me solution to display Update progress.
karthicks
All-Star
31334 Points
5415 Posts
Re: Problem with Postback trigger and update panel and update progress
Apr 10, 2012 07:13 AM|LINK
hi, Updateprogress will be display automatically only on AysncTrigger not on PostbackTriggers. anyhow you can manually show that
Refer : http://forums.asp.net/t/1101546.aspx/1?Update+Progress+show+on+Ajax+Full+Postback+Trigger
http://www.dotnetspider.com/forum/304184-Update-Progress-show-Ajax-Full-Postback-Trigger.aspx
http://www.vbforums.com/archive/index.php/t-611739.html
or you can also use some div with progress image
Edit: 1 fileupload control will work only on PostbackTrigger. so dont use AysncTrigger to show updateprogress refer below link
http://forums.asp.net/t/1101546.aspx/1?Update+Progress+show+on+Ajax+Full+Postback+Trigger
also you can try AsyncFileUpload Control
Refer : http://www.codeproject.com/Articles/42865/AsyncFileUpload-Control-New-Control-in-Ajax-Contro
http://asp-net-example.blogspot.in/2009/12/ajax-asyncfileupload-how-to-use.html
http://www.ajaxtutorials.com/ajax-control-toolkit-tutorials/ajax-control-toolkit-asyncfileupload-control-tutorial-in-c/
Karthick S
sangameshbel...
Member
26 Points
22 Posts
Re: Problem with Postback trigger and update panel and update progress
Apr 10, 2012 07:22 AM|LINK
Thanks for your reply
1. On use of AysncTrigger update progress gets displayed but file wont get uploaded.
<asp:FileUpload ID="FlUpResume" runat="server" />
FlUpResume.HasFile in vb code returns as FALSE.
I need update progress and file also should get uploaded.
2. I tried to use div as progress indicator and set it visibility to true while updating. But on click of save entire page gets refreshed and progress indicator div wont get displayed.
Regards,
Sangamesh
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: Problem with Postback trigger and update panel and update progress
Apr 12, 2012 03:08 AM|LINK
Hello
If you'd like to upload file asynchronously, then consider AsyncFileUpload control, for your reference,
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AsyncFileUpload/AsyncFileUpload.aspx
And you can at the OnClientUploadStarted to add an loading image by javascript, and remove this image at OnClientUploadComplete event.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework