1

Does anybody know how can I upload an image file in a specific folder without post back using c# .

skaffman
  • 398,947
  • 96
  • 818
  • 769
Sandeep
  • 31
  • 1
  • 6
  • 1
    take a look at http://stackoverflow.com/questions/527955/how-can-i-upload-a-file-using-javascript-without-a-postback and http://stackoverflow.com/questions/797190/file-uploading-in-ajax-updatepanel-without-full-postback – Ahmed Sep 07 '09 at 12:32

2 Answers2

2

There is no way to do this. But you can accomplish it using AJAX. Take a look at jquery and some it's plugins, for example jQuery File Upload Plugin

Vitaliy Ulantikov
  • 10,157
  • 3
  • 61
  • 54
1

You could use flash and an HttpHandler to prevent the requirement for a postback.

I have use this example in the past: http://www.codeproject.com/KB/aspnet/FlashUpload.aspx

Mark Redman
  • 24,079
  • 20
  • 92
  • 147