Question

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.

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top