Asp Control ASP.Net

<%@ Page Language="C#" %>
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

    protected void btnAdd_Click(object sender, EventArgs e)
    {
        ListItem item = lstAllProducts.SelectedItem;
        if (item != null)
        {
            lstAllProducts.Items.Remove(item);
            lstFavoriteProducts.ClearSelection();
            lstFavoriteProducts.Items.Add(item);
        }
    }
    protected void btnRemove_Click(object sender, EventArgs e)
    {
        ListItem item = lstFavoriteProducts.SelectedItem;
        if (item != null)
        {
            lstFavoriteProducts.Items.Remove(item);
            lstAllProducts.ClearSelection();
            lstAllProducts.Items.Add(item);
        }
    }
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        foreach (ListItem item in lstFavoriteProducts.Items)
            lblResults.Text += "
  • " + item.Text;
        }



        
                id="lstAllProducts"
            DataSourceID="srcProducts"
            DataTextField="Title"
            DataValueField="Id"
            Runat="server" />
                id="btnAdd"
            Text=">"
            ToolTip="Add List Item"
            Runat="server" 
            OnClick="btnAdd_Click" />
        
                id="btnRemove"
            Text="<"
            ToolTip="Remove List Item"
            Runat="server" 
            OnClick="btnRemove_Click" />
        

  •             id="lstFavoriteProducts"
            Runat="server" />
        

                id="btnSubmit"
            Text="Submit Form"
            Runat="server" OnClick="btnSubmit_Click" />
        


                id="lblResults"
            EnableViewState="false"
            Runat="server" />
                id="srcProducts"
            SelectCommand="SELECT Id, Title FROM Products"
            ConnectionString="<%$ ConnectionStrings:Products %>"
            Runat="server" />
        


    File: Web.config

      
                 connectionString="Data Source=.\SQLEXPRESS;
             AttachDbFilename=|DataDirectory|MyDatabase.mdf;Integrated Security=True;User Instance=True" />