function RemoveOne(selectSource,selectGoal)
{
var ar = new Array();//用于存储选择的项的索引
var length = selectSource.length;
for(i = 0;i < length;i++)
{
if (selectSource.options(i).selected)
{
var text = selectSource.options(i).text;
var value = selectSource.options(i).value;
var oOption = document.createElement("OPTION");
selectGoal.options.add(oOption);
oOption.innerText = text;
oOption.value = value;
我是用JS将ListBox1的值通过双击显示在ListBox2中的。
function change1()
{
var addOption=document.createElement("option")
var index1
if(document.form1.ListBox1.length==0)return(false);
index1=document.form1.ListBox1.selectedIndex
if(index1<0)return(false);
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{