So you might do something like this:
if(confirm('Do you want to download this file?'))
document.location = 'file.exe';
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.
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."