This is a common issue what .net developers are facing frequently who are following the general methods with Ajax update panel.Can you use the file upload control in the update panel for not to refresh the page when you are uploading a file?Simple answer is no.Because it needs a full page post back and if you use a AsyncPostBackTrigger as a trigger will give an Error.Because the result is something like FileUpload1.HasFile = False. This is what Microsoft people has missed in their Ajax controls techniques. But we will go through this challenge and I will show you my solution below.
The Best solution is Keep the file uploading in a different .aspx page an call it via an Iframe.you can retrieve all information of upload page in the Iframe by a java script. This will act as same way like in update panel. I know most of developers are wasting their time to find a solution for this.Hope this will help you all to this common issue. If you want the sample code do not hesitate to ask me.
The Best solution is Keep the file uploading in a different .aspx page an call it via an Iframe.you can retrieve all information of upload page in the Iframe by a java script. This will act as same way like in update panel. I know most of developers are wasting their time to find a solution for this.Hope this will help you all to this common issue. If you want the sample code do not hesitate to ask me.
Thursday, November 11, 2010 8:57:00 PM
respect
file upload realy gives Hasfile=false
error, if we put the file upload and submit button control in update pannel
So there is no another method except javascript
(FOR DETAIL FIND ASPNETTOOLKIT DEMO)
send me coding of File uploading with Ajax without a page refresh. I will be very thankful.
thanks
kim shori
Thursday, September 22, 2011 2:10:00 PM
send me coding of File uploading with Ajax without a page refresh. I will be very thankful.
thanks