I need to upload images using FileUpload without postback(using Ajax).I tried many examples.But in all postback is ing or they are using PHP.Can anyone help me to do single file upload or multi file upload using ajax in ASP.Net with C#.
I need to upload images using FileUpload without postback(using Ajax).I tried many examples.But in all postback is ing or they are using PHP.Can anyone help me to do single file upload or multi file upload using ajax in ASP.Net with C#.
Share Improve this question asked Dec 3, 2008 at 7:58 user42348user42348 4,31928 gold badges73 silver badges99 bronze badges8 Answers
Reset to default 5SWFUpload
http://demo.swfupload/v220beta3/simpledemo/index.php
http://swfupload/
Javascript and Flash, there's no post-back :) and there's .NET implementations available on the site.
Hope you find this useful.
http://aspalliance./1442_Building_AJAX_Enabled_File_Uploading_System_with_Progress_Bar_Using_ASPNET_20.all
It's using asp and ajax.
As the others say you can't do it pletely without a postback but you can add some nice ajax functionality around the process. Steve Sanderson has written a good walkthrough here:
http://blog.codeville/2008/11/24/jquery-ajax-uploader-plugin-with-progress-bar/
I've personally used this: Ajax Uploader - Not free mind you but pretty decent.
I use Ajax Uploader too. It works great for my projects and it allows you to upload files to web server without refreshing the page.
Here is a demo page.
There is no such thing as a ajax file upload. The ponents that you see either use flash swfupload or a hidden iframe that they post a form to that give the impression it is happening in an ajax manner. There are many plugins avaiable to help you do this. My favourite is this that uses jquery and swfupload
There is no way you can access the contents of a file input field through JS. This is because of security concerns. Though what you CAN do is to create an iframe and from a button submit only that iframe which again can contain your file input field...
This would give the "impression" of an Ajax File Upload control...
as other guys said,file upload needs postback.In any update panel ,you should register file upload control as postbackcontrol to scriptmanager.Also you may look telerik upload control to have an idea for what it should be.