FileUpload Using Ajax In ASP.NET With C#

后端 未结 8 1324
无人共我
无人共我 2021-01-07 05:48

I need to upload images using FileUpload without postback(using Ajax).I tried many examples.But in all postback is coming or they are using PHP.Can anyone help me to do sing

相关标签:
8条回答
  • 2021-01-07 06:19

    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.

    0 讨论(0)
  • 2021-01-07 06:26

    There is no such thing as a ajax file upload. The components 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

    0 讨论(0)
  • 2021-01-07 06:29

    I've personally used this: Ajax Uploader - Not free mind you but pretty decent.

    0 讨论(0)
  • 2021-01-07 06:30

    Hope you find this useful.

    http://aspalliance.com/1442_Building_AJAX_Enabled_File_Uploading_System_with_Progress_Bar_Using_ASPNET_20.all

    It's using asp.net and ajax.

    0 讨论(0)
  • 2021-01-07 06:32

    As the others say you can't do it completely 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.net/2008/11/24/jquery-ajax-uploader-plugin-with-progress-bar/

    0 讨论(0)
  • 2021-01-07 06:33

    SWFUpload

    http://demo.swfupload.org/v220beta3/simpledemo/index.php

    http://swfupload.org/

    Javascript and Flash, there's no post-back :) and there's .NET implementations available on the site.

    0 讨论(0)
提交回复
热议问题