Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Ajax Uploader
»
Page is reloaded after an ajax upload
Page is reloaded after an ajax upload
Last post 09-11-2009, 9:39 AM by
cutechat
. 1 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
09-11-2009, 9:27 AM
55565
Lan-Lord
Joined on 08-27-2009
Posts 7
Page is reloaded after an ajax upload
Reply
Quote
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
cutechat
Joined on 07-22-2004
Posts 2,332
Re: Page is reloaded after an ajax upload
Reply
Quote
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