ASP/C# SharePoint web part... OnMouseOver not responding
<p>Here are the salient lines in VisualWebPart1UserControl.ascx</p>

<pre><code>    &lt;%@ Control Language="C#" AutoEventWireup="true" CodeBehind="VisualWebPart1UserControl.ascx.cs" Inherits="StudentHeader.VisualWebPart1.VisualWebPart1UserControl" %&gt;
&lt;asp:DropDownList ID="dd" runat="server" OnMouseOver="LightUpDD" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" Width="400px" AppendDataBoundItems="true" AutoPostBack="True"&gt;
    &lt;asp:ListItem Text="&lt;Select Student&gt;" Value="0" /&gt;
&lt;/asp:DropDownList&gt;
</code></pre>

<p>Note OnMouseOver="LightUpDD" and ID="dd".</p>

<p>I have a LightUpDD function in VisualWebPart1UserControl.ascx.cs:</p>

<pre><code>    protected void LightUpDD(object sender, EventArgs e)
    {
        dd.Enabled = true;
    }
</code></pre>

<p>Debugging gives me a run-time error as soon as I float my mouse over the DropDownList control:</p>

<p><strong>Unhandled exception at line 575, column 302 in <a href="http://spdevelopment:8282/studentheader/SitePages/Home.aspx" rel="nofollow">http://spdevelopment:8282/studentheader/SitePages/Home.aspx</a>
0x800a1391 - JavaScript runtime error: 'LightUpDD' is undefined.</strong></p>

<p>This is strictly a cosmetic idea, so it's not crucial, but I'm curious as to why I get the error for a function that clearly (at least to me) exists and compiles.</p>

<p>Thanks for any help!</p>

<p>Nick.</p>