I just started to learn jquery and JavaScript so i can implement it with my current asp.net project. However i have a hard time to grasp the idea how to make a dialog that will show up when user attempt to push delete button and then if user chose button ‘Yes’ it will go for the delete function in code behind of asp.net or if user chose ‘No’ then it will be terminated and no action will be taken.
NOTE: I don’t look for somebody to teach me, I just would like some explanation, code examples and links to information where i can read and understand and try on my own.
Thanks in advance.
In javascript you can use ‘confirm’ to prevent a form submission e.g.
The ‘return’ will return ‘true’ if you clicked [ok] in the confirm box and then the form will be submitted, or ‘false’ if you clicked [cancel] and then the form won’t be submitted.
[EDIT] Some links that might be helpfull: