Dropdownlist Error
<p>In .net win form application. I load dropdownlist like this.</p>

<pre><code> private void loadChannelCombo()
        {
            string sql = "select channelID,channelName from rechannel where isActive=1 order by channelName";
            DataTable dt = DBHandler.GetData(sql);
            ddlChannel.DataSource = dt;
            ddlChannel.DisplayMember = "channelName";
            ddlChannel.ValueMember = "channelID";
        }
</code></pre>

<p>now I want to do same in .net web aaplication. When I copy paste that code error occurred like
<img src="http://i.stack.imgur.com/70kUM.png" alt="enter image description here"> </p>

<p>I want to do same as in web application. How can I Do that????</p>
