Ajax and Fileupload

  • Thread starter Thread starter Fresno Bob
  • Start date Start date
F

Fresno Bob

I know this has been addressed sortof. It's using the update panel with the
fileupload control. I get how to use a postback trigger to do a full
postbask. However my page has some server side validation. I would like to
partial update until the validation is sucessful and then do a full
postback. Is this possible. I have tried dynamically adding a control via
the RegisterPostBackControl when the validation is successful but I have to
press the button twice. Also when I am doing the partial updates the
fileupload loses it's value - is this by design or is it something I'm doing
wrong. I am using the update control with conditional updates.
 
the update panel does partial (aysnc) updates via xmlhttprequest. this will
not allow a file upload, only the browser can via a form submit (postback).

if you take the filecontrol out of the update panel, then on a async
postback, you can do a server validate. and send back javascript to do a full
postback on sucess.


-- bruce (sqlwork.com)
 
the update panel does partial (aysnc) updates via xmlhttprequest. this will
not allow a file upload, only the browser can via a form submit (postback).

if you take the filecontrol out of the update panel, then on a async
postback, you can do a server validate. and send back javascript to do a full
postback on sucess.

-- bruce (sqlwork.com)





- Show quoted text -

How do I send the javascript back? Regards, Chris.
 
Back
Top