Asp.net Event for change tracking of entities
<p>I have an asp.net page with many dozens of controls representing multiple database entities. I would like to track when any of the data for these entities is changed. </p>

<p>If I add a page member such as </p>

<pre><code>public Page1 : System.Web.UI.Page
{
    protected bool Entity1HasChanged { get;set; }

    protected void RegisterChange(object sender, EventArgs e)
    {
        Entity1HasChanged  = true;
    }
}
</code></pre>

<p>Then for each control OnTextChanged event or equivalent I call a method that sets this boolean to true.</p>

<p>I would then like to run a method <strong>AFTER</strong> all control events have completed which does some database updates. What page event can I hook into to do this? Reading the page on the LoadComplete event it only states that all load events will have completed.</p>

<p>Does anyone know how I should achieve this? Am I doing this completely the wrong way?</p>

<p>Thanks,</p>

<p>Ian</p>
