Hi,
Jon Paal wrote:
I can't seem to get this to redirect on confirm.
Dialog appears but does not change pages on "ok" what's missing here ?
btnComplete.Attributes.Add("onclick", "if(confirm(' complete
?')){window.location = 'thankyou.aspx'}else{return false}")
The code above looks OK to me.
To check what the error is:
- Check the produced HTML / JavaScript code. What does it look like?
- Execute your code in Firefox, then click on Tools / JavaScript
console. What does it say?
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:
http://www.galasoft-LB.ch
PhotoAlbum:
http://www.galasoft-LB.ch/pictures
Support children in Calcutta:
http://www.calcutta-espoir.ch