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..

Recommended Answers

All 3 Replies

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?

write condition if(!page.IsPostback) then "write you code " end if

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.