Camillia
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??
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER