0

Hi
I was created one web application. In which i am using the ajax control asyncfileupload file uploader in update panel.
Upload file correctly but when i refresh the page then double this file is uploaded..
how to fix this problem in asp.net? please help me
how to postback the page..

4
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by crishlay
0

Hi,
With no code to go on I'm speculating but have you got the code to upload the file in the Page_Load method? if so, and you don't want the action repeated, you need to put the code inside of

if(!Page.IsPostBack) {
// your code
}

This means your code is only called the first time the page is loaded. Subsequent reloads (postbacks) skip the code.

Is that what you need?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.