I have a delete button, using a dtc, and need to prompt the user with an "Are you sure?" yes/no after he clicks the button, but before the delete takes place. I have the delete in a server side event handler:
<SCRIPT ID=serverEventHandlersVBS LANGUAGE=vbscript RUNAT=Server>
Sub btnDelete_onclick()
rsPost.deleteRecord
End Sub
</SCRIPT>
I figured I'd use the javascript confirm, and I know I need some combination of response.writes, but if I tried to do
response.write "<script language='javascript'>" _
"confirm(msgConfirm)" _
"</script>"
the </script> ended the whole sub, and I also know I need some if logic in here somewhere.
Please help me sort this out. Thanks.
<SCRIPT ID=serverEventHandlersVBS LANGUAGE=vbscript RUNAT=Server>
Sub btnDelete_onclick()
rsPost.deleteRecord
End Sub
</SCRIPT>
I figured I'd use the javascript confirm, and I know I need some combination of response.writes, but if I tried to do
response.write "<script language='javascript'>" _
"confirm(msgConfirm)" _
"</script>"
the </script> ended the whole sub, and I also know I need some if logic in here somewhere.
Please help me sort this out. Thanks.