如题

解决方案 »

  1.   

    not possible, what you created is on the client side, the server control ListBox doesn't know and it normally uses ViewState to persist the ListItem's, try to post back the change and change the ListItem on the server side
      

  2.   

    创建一个hiddenbutton来保存添加的listItem信息,如:
    <input type="hidden" id="hidden1" runat="server">//使用javascript 保存信息
    function savelistItem(list){
        var hide1=document.getElementById("hidden1");
        hide1.value =hide1.value+";"+list
    }//在服务器端根据 hidden1.Value进行拆分获取值
      

  3.   

    我用javascript主要考虑到避免一些页面刷新