Avoiding postback on upload control when another button is clicked

  • Thread starter Thread starter SBK
  • Start date Start date
S

SBK

Hi All,

Got a quick problem, hoping someone can help me out here.

Using an Upload Control. If a file to upload is specified and another form
action is committed (i.e. btnBack) then the upload control will still post
the file but not call the event.

Anything I can do to prevent this?


Thanks in advance.
 
as the value can be cleared, in client script disable the upload control
via the onclick event of the buttons you don't want to post the file.
the browser will not post disabled fields.

-- bruce (sqlwork.com)
 
Back
Top