So I have a Hyperlink on my asp.net page. When the person clicks that link, it carries out some action. Now I want to be able to add a javascript alert (confirm, actually) as to whether the user is SURE he/she wants to carry out the action? If yes, then carry out the action, otherwise do nothing. How do I do this?
My current code just has a link to the action:
Link1.NavigateUrl = "./Actions.aspx?action=abort&job=" + JobID;