UploadAttachments loses file info during multiple postbacks (Viewstate is enabled)

  •  12-21-2011, 5:33 AM

    UploadAttachments loses file info during multiple postbacks (Viewstate is enabled)

    Hi all,
     
    I'm using a trail of the asp.net Ajaxuploader. When I place the UploadAttachments control inside a MultiView control and switch between different views, at some point, the UploadAttachments control looses its viewstate (i think). It displays "(-1Bytes)". Sometimes it takes 2 postbacks, other times 3 to loose viewdata.
     
    I've got viewstate enabled.
     
    Is this normal (by design)? Or am I doing something wrong.
     
    EDIT: Able to reproduce
    It seems that the Uploadattachments control can only handle 1 postback. When I change to View #2 and then back to View #1, all files are still there. If I post to View #2 en then View #3 en than back to View #1, all files are gone.
     
    Filed under:
View Complete Thread