How can I pass a ASP.NET server control to a function?
<p>I have a class in a separate file (stripped out a lot for simplicity)</p>

<pre><code>public class navigation
{
    // Adds to menu
    public static void addMenuToList(ListView parent)
    {                
        parent.Items.Add(newItem);
    }
}
</code></pre>

<p>Where parent is a control on my .net page:</p>

<pre><code>&lt;asp:ListBox SelectionMode="Single" Rows="8" id="parent" runat="server" CssClass="tbox widebox"&gt;
</code></pre>

<p>How do I pass the control to the function so it can be accessed?</p>

<pre><code>navigation.addMenuToList(parent);
</code></pre>

<p>This doesn't seem to work.  Am I going about it wrong?</p>
