JavaScript Confirm before submit

J

Jeremy

I have a datagrid that users interact with to
add/edit/delete, but before the .aspx submits for the
delete action I want to pop up a JavaScript confirm box.

If the user clicks OK on that box I want the page to be
submited and to delete the item(s) from the grid, if the
user clicks CANCEL I don't want the page to do a postback.

So far I have everything working except the JavaScript
confirm box (in other words the delete just happens
without the user confirming). Can anybody please help me
with getting the confirm to work (I don't even know where
to start)?

Thanks,
Jeremy
 

Ask a Question

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.

Ask a Question

Top