How do I get an Asp.Net radiobox to callback when it is clicked?
<p>I'm working on an asp.net/C# application, and trying to get a radiobox to invoke a callback when any of the buttons on it is clicked. Does anyone know how to do this? I've tried this...</p>

<pre><code>&lt;asp:RadioButton id="id1" onclick="do_foo" runat="server" Text="Text1" GroupName="mybox" /&gt;
&lt;asp:RadioButton id="id2" onclick="do_foo" runat="server" Text="Text2" GroupName="mybox" /&gt;
&lt;asp:RadioButton id="id3" onclick="do_foo" runat="server" Text="Text3" GroupName="mybox" /&gt;
</code></pre>

<p>and also this...</p>

<pre><code>&lt;asp:RadioButtonList onclick="do_foo" id="radiolist1" runat="server"&gt;
    &lt;asp:ListItem&gt;Text1&lt;/asp:ListItem&gt;
    &lt;asp:ListItem&gt;Text2&lt;/asp:ListItem&gt;
    &lt;asp:ListItem&gt;Text3&lt;/asp:ListItem&gt;
&lt;/asp:RadioButtonList&gt;
</code></pre>

<p>but in both cases get the error "Microsoft JScript runtime error: 'do_foo' is undefined". I know that do_foo is defined because I can invoke it from a button.</p>
