Grouping controls under a single form element
<p>Consider this snippet of code...</p>

<pre><code>&lt;form runat="server"&gt;
    &lt;asp:TextBox runat="server" ID="TextBoxOne" /&gt;
    &lt;asp:Button  runat="server" ID="SubmitOne" OnClick="ButtonOne_Click" /&gt;

    &lt;hr /&gt;

    &lt;asp:TextBox runat="server" ID="TextBoxTwo" /&gt;
    &lt;asp:Button  runat="server" ID="SubmitTwo" OnClick="ButtonTwo_Click" /&gt;
&lt;/form&gt;
</code></pre>

<p>I want to group these two sets of controls.</p>

<p>When the user presses ENTER, having filled out <em>TextBoxOne</em>; the <code>ButtonOne_Click</code> event fires. And when the user has typed something into <em>TextBoxTwo</em> and presses enter; the <code>ButtonTwo_Click</code> event gets fired.</p>

<p>The way you would normally do this, is to have form elements surround each of the groups. But this is not possible in ASP.NET. And short of doing some "has-focus"-logic in JavaScript, I'm all out of ideas.</p>
