Support forums
in

Page is reloaded after an ajax upload

Last post 09-11-2009, 9:39 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  09-11-2009, 9:27 AM 55565

    Page is reloaded after an ajax upload

    It appears that my page is reloading (e.g. Page_Load method fires ) after I do an ajax upload.
     
    I tested it in the provided simple-upload.aspx and observed the same behavior there.
    Is there a way to prevent a Page_Load (e.g. reload)?
    Thanks
     
  •  09-11-2009, 9:39 AM 55567 in reply to 55565

    Re: Page is reloaded after an ajax upload

    Hi,
     
    The uploader will do the postback after the files be uploaded.
     
    And fire the FileUploaded event on server side.
     
    So the Page.Load event will fire again.
     
    You can use if(!Page.IsPostBack) for the first load event.
     
    Regards,
    Terry
View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems