Sorry for my ignorance. Currently all I have is a Button_OnClick sub. I am
prompting the users if the want to proceed. If yes then the form is
submitted otherwise if no.
Here's some server side code that outputs javascript that will do the trick:
myDeleteButton.Attributes.Add("onclick", _
"return confirm('Are you sure you want to delete?');")
Or if you insist on VBScript you could use the Msgbox Function.
If the return value is vbOK (1) then document.Form1.submit()
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.