Use of delegates in ASP.NET user controls
Posted on 2010-11-11
I have a "save" button on an ASP.net web user control which saves some form data.
Within this control is another user control, designed to navigate through records.
When the user presses on a button on the nested user control, I'd like the "save" method on the first ASCX to be called, thus saving the form data before traversing to the next record.
I understand that I'll probably need to use delegates to achieve this, however am would appreciate it if somebody could give me some clarification or advice on how to achieve this.
My navigation buttons on my nested control are hyperlinks which have URLs generated by some business logic.
Any advice would be appreciated.