0

I have an Ajax AsyncFileUpload on one of my pages (inside a update panel). The control works, however I want the page to reload after the upload is complete. I tried a Response.Redirect in the code behind for the OnUploadedComplete method and a location.reload(true) in the OnClientUploadComplete. Both result in javascript alert of `Server Response Error: 'Unknown Server error'

Do you want to see the response page?` and the page doesn't refresh.

Has anyone been able to do a full page refresh after the upload has completed?

Edit: I mistakenly said the AsyncFileUpload is in a control panel, I meant to say update panel.

4

3 に答える 3

0

裏面に Response がある場合は、ページのライフサイクルがそこで終了する可能性があることに注意してください。これは単なる推測です。コードが意図したポイントに到達していることを確認してください。それ以降の実行を妨げる Response.End などを探します。

于 2012-02-28T22:31:51.970 に答える
0

This control panel that you told. Is this a UpdatePanel? If it is, you can try an upd.Update(); to refresh the panel.

于 2012-02-28T20:46:03.843 に答える
0

コントロールを使用し、Scriptmanager のメソッドasp:FileUploadでポストバック コントロールとして登録します。RegisterPostBackControlまたは、この FileUpload のポストバック トリガー エントリを UpdatePanel の Triggers コレクションに追加します。

于 2012-02-29T13:16:46.813 に答える