CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Posts
    8

    FileUpload and Ajax

    Hi,

    I'm using .Net 2.0, Ajax extension.

    I'm trying to use the FileUpload and Ajax so the file upload will post itself and not the whole page. It doesn't work.

    I read somewhere that there is no Ajax support for FileUpload control yet. Is that right?

    I want the user to upload a file and see an animated gif as the progress bar while the file is uploading.

    10x.

  2. #2
    Join Date
    Mar 2000
    Location
    Vancouver, BC, Canada
    Posts
    278

    Re: FileUpload and Ajax

    I'd heard it's not possible and read just yesterday that with Microsoft's Atlas/ Ajax Beta it's NOT possible, due to how the XMLHttpRequest object handles connections.
    David Meikle
    Quantum Unit Solutions, LLC
    www.quantumunit.com

  3. #3
    Join Date
    Mar 2007
    Posts
    1

    Re: FileUpload and Ajax

    FileUpload and some other controls are not compatible with ajax extensions. You can revise at http://ajax.asp.net/docs/overview/Up...lOverview.aspx

    However, you can use iframes to make ajax-like file upload system, and make it work with ajax extensions. Here are my blog posts which also includes downloadable source code:

    full tutorial:
    http://vinayakshrestha.wordpress.com...ax-extensions/
    and download link:
    http://vinayakshrestha.wordpress.com...ad-workaround/

    You can easily add javascripts to show and hide your animated image, when button is clicked and after process is complete (in RegisterStartupScript method)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured