Link to home
Start Free TrialLog in
Avatar of Camillia
CamilliaFlag for United States of America

asked on

How does this code work?

I've inherited this project and dont understand this section:.

1. In the aspx page, there's an event:
public event EventHandler AddressSaved;

2. User clicks Save button and there's:
OnAddressSaved(e);

3. There's a routine for OnAddressSaved(e);
protected virtual void OnAddressSaved(EventArgs e)
    {
        if (AddressSaved != null)
        {
            AddressSaved(this, e);
        }
    }

*** Now, I right click on AddressSaved(this,e) and choose "go to definition" to see where it actually saves and calls the database but it goes to the event handler.

So where is it actually saving??
ASKER CERTIFIED SOLUTION
Avatar of philipjonathan
philipjonathan
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Camillia

ASKER

let me see. I think i found it in the code.