Since the automatic scaffolding of ASP.NET Dynamic Data Web Pages does most of the things I need to do for this project on its on, I'd like to use it as a basis.
Now, I like to add another link to the "Edit" "Delete" "Details" trio on my custom table view. I'd like it behave much like the "Delete" button, i.e. not call another page, but do something in the background (Here: Send an email.) and then refresh the view. Alas, I fail to understand how this "Delete" link works.
It is defined in the automatically generated code as
<asp:LinkButton ID="DeleteLinkButton"
runat="server" CommandName="Delete"
CausesValidation="false" Text="Delete"
OnClientClick='return confirm("Are you sure you want to delete this item?");'/>
What exactly happens here? Is there a method in the code somewhere named "Delete" (like used in the CommandName property)? What arguments are passed there? And: How would I call a custom method?
I tried stepping through it using the debugger, but it is easy to loose oneself in the LINQ Dataclasses, so I found nothing.
Thanks in advance!