Asp.net Custom Control pass object as a property
<p>In Asp.Net custom control i want to pass an object as a property (like we pass width / color) Is there anyway i can do that in design time?</p>

<p>Example:</p>

<p>Custom control is a &lt;asp:Panel&gt; and i would like to pass</p>

<p><strong>&lt;cus:CustomPanel ID="Panel11" runat="server" CustomObject="student" /&gt;</strong></p>

<p>student object is instantiated in code behind and my custom panel is coded like this</p>

<pre><code>public class CustomPanel:Panel
{
    [Browsable(true), Category("Data")]
    public object CustomObject { get; set; }
}
</code></pre>
