Upload File in an UpdatePanel (AJAX)

Discussion in 'ASP .Net' started by Bjorn Sagbakken, Sep 25, 2007.

  1. I'am sure this has been discussed many times, but my search for the best
    approach hasn't turned out well - so far.
    Like hidden iframes... well I understand that a full page postback is needed
    to make the upload file to work.
    I have added several UpdatePanels to our application, and all these work
    great, except for the uploading of images.

    My approach ... I should think it might be possible to force a page postback
    from the code within an UpdatePanel. Or maybe someone has a much better
    idea?

    Bjorn
     
    Bjorn Sagbakken, Sep 25, 2007
    #1
    1. Advertising

  2. Bjorn Sagbakken

    Teemu Keiski Guest

    Hi,

    do you mean PostBackTrigger?
    http://www.asp.net/AJAX/Documentation/Live/mref/T_System_Web_UI_PostBackTrigger.aspx


    --
    Teemu Keiski
    AspInsider, ASP.NET MVP
    http://blogs.aspadvice.com/joteke
    http://teemukeiski.net

    "Bjorn Sagbakken" <> wrote in message
    news:...
    > I'am sure this has been discussed many times, but my search for the best
    > approach hasn't turned out well - so far.
    > Like hidden iframes... well I understand that a full page postback is
    > needed to make the upload file to work.
    > I have added several UpdatePanels to our application, and all these work
    > great, except for the uploading of images.
    >
    > My approach ... I should think it might be possible to force a page
    > postback from the code within an UpdatePanel. Or maybe someone has a much
    > better idea?
    >
    > Bjorn
    >
     
    Teemu Keiski, Sep 25, 2007
    #2
    1. Advertising

  3. Thanks, that was sort of what I was thinking about. Not sure the upload of
    the file will perform as expected though. I see the hidden iframe as the
    most common idea, at least then there will be the smoothest client
    experience. Trial and error...

    Bjorn

    > do you mean PostBackTrigger?
    > http://www.asp.net/AJAX/Documentation/Live/mref/T_System_Web_UI_PostBackTrigger.aspx
    >
    >
    > --
    > Teemu Keiski
    > AspInsider, ASP.NET MVP
    > http://blogs.aspadvice.com/joteke
    > http://teemukeiski.net
    >
    > "Bjorn Sagbakken" <> wrote in message
    > news:...
    >> I'am sure this has been discussed many times, but my search for the best
    >> approach hasn't turned out well - so far.
    >> Like hidden iframes... well I understand that a full page postback is
    >> needed to make the upload file to work.
    >> I have added several UpdatePanels to our application, and all these work
    >> great, except for the uploading of images.
    >>
    >> My approach ... I should think it might be possible to force a page
    >> postback from the code within an UpdatePanel. Or maybe someone has a much
    >> better idea?
    >>
    >> Bjorn
    >>

    >
    >
     
    Bjorn Sagbakken, Sep 25, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2FyYXY=?=

    Upload a file without file Upload control - ASP.Net

    =?Utf-8?B?U2FyYXY=?=, Aug 2, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    2,583
    Bruce Barker
    Aug 3, 2005
  2. Replies:
    3
    Views:
    511
    Rob Meade
    Aug 8, 2007
  3. Bjorn Sagbakken
    Replies:
    2
    Views:
    560
    Bjorn Sagbakken
    Sep 26, 2007
  4. Leon Mayne
    Replies:
    5
    Views:
    4,833
    Leon Mayne
    May 27, 2008
  5. Nathan Sokalski
    Replies:
    1
    Views:
    615
    miher
    Jun 15, 2009
Loading...

Share This Page