select the dual problems. Items are left with empty value
===

Good morning everyone!

I have the following code, which sets up a dual select a block brings the database and select the buttons and send to another box (select another).

        <select name="box1View" id="box1View" multiple class="multiple" style="height: 300px;" runat="server">
                        </select>
                        <br />
    
                        <button id="to2" type="button" class="basic mr5 mb15" runat="server">
                            &nbsp;&gt;&nbsp;</button>
                        <button id="allTo2" type="button" class="basic" runat="server">
                            &nbsp;&gt;&gt;&nbsp;</button><br />
                        <button id="to1" type="button" class="basic mr5" runat="server">
                            &nbsp;&lt;&nbsp;</button>
                        <button id="allTo1" type="button" class="basic" runat="server">
                            &nbsp;&lt;&lt;&nbsp;</button>
                    </div>
    
    <select name="box2View" id="box2View" multiple class="multiple" style="height: 300px;" runat="server"></select>

The complete code that I based, is this link: http://www.meadmiracle.com/dlb/DLBDocumentation.aspx

But the problem is not that part but in codeBehind.

I need to get all the items selected in box1View and sent to the box2View and save these items in the database:

        protected void Incluir_Atleta_Click(object sender, EventArgs e)
            {
    InscricaoAtletaBO inscBO = new InscricaoAtletaBO();
    Tab_Inscricao_Atleta tab_insc = new Tab_Inscricao_Atleta();
    
    try
                {
                    tab_insc.Insc_Atle_Codigo = maxCod;
                    tab_insc.Insc_Atle_DataInc = DateTime.Now;
    
                    var teste1 = box1View.Value; // Fiz um teste aqui
    
                    var teste = box2View.Value; // E um teste aqui, porém nos dois vêm vazios! 
    
    //tab_insc.Insc_Atle_PK_Atleta = Convert.ToDouble(box2View.Value); // Aqui seria para inserir
    
    .
    .
    .
    
    inscBO.Add(tab_insc);
    inscBO.SaveChanges();
    }
                catch
    {
    ...
    }               

 

I need the box2View.Value come with the items I sent him!

Can anyone help me?

I thank you!