Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys,
I am facing a problem a postback is appeared after uploading a file in aspx page.
please suggest me the solution as soon as possible that how without postback i can upload a file
Posted
Updated 12-Nov-13 19:10pm
v2
Comments
Vishal Pand3y 13-Nov-13 1:16am    
Use Update Panel if you want to prevent post back
bluesathish 13-Nov-13 1:54am    
@Vishal: update panel does postbacks partially. But it doesn't postback the entire page, so the redirection looks not happened but it does.
Member 10135714 13-Nov-13 2:10am    
inside update panel i'm using file upload button which is not compatible as per i know..can u help me please??
bluesathish 13-Nov-13 5:17am    
Have you place script manager before the update panel?

See
AsyncFileUpload is an ASP.NET AJAX Control that allows you asynchronously upload files to server. The file uploading results can be checked both in the server and client sides.
VB
<ajaxToolkit:AsyncFileUpload OnClientUploadError="uploadError"
     OnClientUploadComplete="uploadComplete" runat="server"
     ID="AsyncFileUpload1" Width="400px" UploaderStyle="Modern"
     UploadingBackColor="#CCFFFF" ThrobberID="myThrobber"
/>


Get some good links
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AsyncFileUpload/AsyncFileUpload.aspx

http://csharpdotnetfreak.blogspot.com/2012/08/ajaxfileupload-asyncfileupload-in-modalpopup.html
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900