The implementation will vary but the process is the same: use a JavaScript confirmation box.
So you might do something like this:
javascript Code:
function GoToDownload()
{
if(confirm('Do you want to download this file?'))
{
document.location = 'file.exe';
return true;
}
else
return false;
}
then the html:
<a href='#' onClick="return GoToDownload();">Download File</a>
If i were doing this in a Server control like a button I would probably do something like:
btn.Attributes.Add("onClick", "return confirm('Do you want to download this file?')");
So then when the user clicks on my button they will see the confirmation box and if they click OK the buttons Serverside event is triggered otherwise nothing happens.
hth.
-Doug
__________________
===============================================
Doug Parsons
Wrox online library:
Wrox Books 24 x 7
Did someone here help you? Click

on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================