Access web control from class file in asp.net 4
<p>I am doing a simple page (Default.aspx), where is a DropDownList (id <strong>colors</strong>) control. It is easy to populate it with items in PageLoad method. </p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    if (!this.IsPostBack)
    {
        colors.Items.Add("red");
    }
}   etc. ....
</code></pre>

<p>However, is it possible to fill the <strong>colors</strong> control from external class file (I mean some class file located in AppCode folder). </p>

<p>Thanks.</p>
