views:

201

answers:

3

Hi,

I am working on ajax-page using PageMethods (web service) to interact with server. I want to allow a user to upload a given file to server (at some fixed path on server).

I know about FileUpload control in asp.net, but that wont work in my case. Since i dont want to user UpdatePanel or a dedicated server page.

Is there a way to do it using client side ajax?.

Thanks in advance.

A: 

I don't know of an Ajax-way, but you could add an iframe to your page, and load a dedicated upload-page in that inside it.

On the upload page you can then use the FileUpload control.

M4N
A: 

You can do that using embeded flash, Google uses it in Gmail. Here is a good one, it is free and you can use with asp.net as well

Cleiton
A: 

You can also embed a java applet such as JFileUpload to have files and directories upload with progress bar. You can find such web component at: http://www.jfileupload.com/products/jfileupload/index.html Online demonstration are available.

fileuploader