关于listbox的使用请帮帮忙,小弟才实习好多都不会呢。

关于listbox的使用请帮帮忙,小弟才实习好多都不会呢。。。。。在线等
怎么使用listbox1控件实现数据库查找信息然后显示在listbox1中然后传递到另外的listbox2中,然后再把listbox2中的数据插入数据库呢   还有4个按钮实现   添加   删除   全添加   全删除     应该怎么做呢

------解决方案--------------------
主要是用js实现

//添加


function add()
{
var iIndex;
iIndex=document.frmStat.list1.selectedIndex;

sValue=document.frmStat.cboOnColumnName.options(iIndex).value;
strShowName=document.frmStat.cboOnColumnName.options(iIndex).text;
var objOption=document.createElement( "option ");
objOption.value=sValue;//这个是list1选中的值
objOption.text=strShowName;//这个是list1选中项显示的文字
document.frmStat.list2.options.add(objOption);

}
//删除
function del()
{
var iIndex;
iIndex=document.frmStat.list2.selectedIndex;

if(iIndex <0)
{
return;
}
document.frmStat.list2.remove(iIndex);

}