Saturday, March 24, 2012

ASP.NET / AJAX - FILE UPLOAD

Hi,

I am trying to build a web based application using asp.net and i need to have a file upload that will upload somehow in the in the background and report to the asp.net page once uploaded.

i tried one example for an ajax/webservice upload but it required interaction of an activex object that required browset setting changes that would not be suitable for the target installation for the customer.

is it possible to do a succesful 'background' upload using asp.net and ajax?

thanks in advance!

regards,

kq2

Yes it is, you can see it working here:http://www.telerik.com/products/aspnet/controls/upload/overview.aspx


Hi,

Thanks for your reply.

Anyone got any way of doing the upload without buying someone else's existing component?

Thanks again.


Hi, kitquo2

An Ajax Alternative for FileUpload!!!!

We've all embraced Ajax as a revolutionary technology, but many of us forget (or are not aware) of asynchronous posts in the times before XmlHttp requests. Our good old friend the IFrame used to be the preferred option for asynchronous http communications. Because an iframe is in essence it's own browser window, it can be used to fire off asynchronous requests (both POST and GET). However, even more important is an IFrame's ability to be a 'target' of a form POST. By adding an IFrame to the page and setting it as the target of the form post, you can in essence create an asynchronous file transfer.

For more help about Ajax Alternative for FileUpload, Please check: http://blogs.infragistics.com/blogs/tony_lombardo/archive/2007/04/09/file-uploads-where-s-the-ajax.aspx

You can also see this thread for more help:http://forums.asp.net/t/1117746.aspx There is a demo in my reply to that thread.

Let me know if you need more info.

If this help you,don't forget mark it as a answer.Thanks!

No comments:

Post a Comment