title: Dropdownlist Datasource and adding extra item from C#
body: <p>I have a <code>DropDownList</code> that is associated with a <code>DataSource</code> in the aspx page. I need to add one more item when the page is loaded. </p>
  
  <p>My Code:</p>
  
  <pre><code>&lt;asp:LabelDropDownList ID="ddlVisualTemplate" runat="server" LabelText="Visual Template:"      DataSourceID="VisualTemplateDataSource" DataTextField="Name" DataValueField="Id" AutoPostBack="true" OnSelectedIndexChanged="ddlVisualTemplate_SelectedIndexChanged"/&gt;                         
  
  &lt;asp:EntityDataSource ID="VisualTemplateDataSource" runat="server" 
       ConnectionString="name=Entities" 
       DefaultContainerName="Entities" EnableFlattening="False" 
       EntitySetName="tbEmailVisualTemplates"&gt;
  </code></pre>
  
  <p>And I am trying to an extra item to it:</p>
  
  <pre><code>    protected void Page_Load(object sender, EventArgs e)
      {
          if (!IsPostBack)
          {
              ddlVisualTemplate.Items.Add(new ListItem("None", string.Empty));
          }
      }
  </code></pre>
  
  <p>If I debug the code, it goes through it. But When the page is displayed dropdown doesn't contain <code>"None"</code>.</p>