I think I figured this out. If you click on "Yes", then the SaveFileDialog
control proceeds with Response.OK. I can write my File.Delete(file) code
after that.
If you click on "No" then the SaveFileDialog control does not proceed.
"Rich" wrote:
> Hello,
>
> The saveFileDialog control asks if I want to overwrite an existing file. If
> I click on "yes" for this prompt, how do I capture this response?
>
> --Pseudo code:
> If SaveFileDialog1.OverwritePrompt.Response = "Yes" then
> File.Delete(SaveFileDialog1.FileName)
> End If
> ...
>
> How do I capture this response?
>
> Thanks,
> Rich
|