Pass Multiple Controls to Javascript Function in WebUserControl
<p>If I have a Web User Conrol (ASP.NET), how do I pass multiple objects to javascript function from the markup? See Below under the image control calling ShowList...</p>

<pre><code>&lt;script type="text/javascript"&gt;
function ShowList(txt, lst) {
    var t = document.getElementById(t.id);
    var l = document.getElementById(l.id);
    l.style.display = 'block';
}
&lt;/script&gt;

&lt;asp:Panel ID="Wrapper" runat="server" Width="200px"&gt;
&lt;asp:TextBox ID="TextBox1" runat="server" Width="150px"&gt;&lt;/asp:TextBox&gt;
&lt;asp:Image ID="Image1" runat="server" CssClass="image" ImageUrl="~/Images/cb-button-b3.png"
    onclick='&lt;%="ShowList("TextBox1,ListBox1)"%&gt;'&gt;
&lt;/asp:Image&gt;
&lt;asp:ListBox ID="ListBox1" runat="server" CssClass="listbox"&gt;
    &lt;asp:ListItem&gt;a&lt;/asp:ListItem&gt;
    &lt;asp:ListItem&gt;b&lt;/asp:ListItem&gt;
    &lt;asp:ListItem&gt;c&lt;/asp:ListItem&gt;
&lt;/asp:ListBox&gt;
&lt;/asp:Panel&gt;
</code></pre>
