Can anybody tell me if it is possible to run a client side function and then if a particular action occurs, a call to the server will be made and dealt with.
To put some context, I would like to have a "Delete" button on a screen that will eventually delete a record out of my database. However, I would like to ask the user "Are you sure you would like to delete this record?" before doing so. If they confirm, then I would like my C# server side functionality deleting the record to fire. If they do not confirm, I would like nothing to happen.
Is this possible/does anybody know a link to a decent tutorial?