it doesnt matter that the site is for asp, the script is still javascript.
You're going to have a tough time showing the message only if a checkbox is checked, the best bet is to show the message any time the button is clicked regardless of the checkbox status.