ÓÐÁ½¸öÁбí¿ò£¨listbox2ºÍlistbox3£©£¬Í¨¹ýÒ»¸öÁбí¿ò¿ÉÒÔÏòÁíÒ»¸öÁбí¿òÖÐÌí¼Ó»òÕßɾ³ýÄÚÈÝ¡£
´úÂëÈçÏ£º
public partial class xiaoya : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text = "Äã×îϲ»¶µÄÔ˶¯ÊÇ£º" + ListBox1.SelectedItem.Text;
}
protected void Button2_Click(object sender, EventArgs e)
{
for (int i = 0; i < ListBox2.Items.Count; i++)
ListBox3.Items.Add(ListBox2.Items[i]);
}
protected void Button3_Click(object sender, EventArgs e)
{
for (int i = 0; i < ListBox2.Items.Count; i++)
if (ListBox2.Items[i].Selected)
ListBox3.Items.Add(ListBox2.Items[i]);
}
protected void Button4_Click(object sender, EventArgs e)
{
for (int i = ListBox3.Items.Count - 1; i <= 0; i--)
if (ListBox3.Items[i].Selected)
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
ÕâÑù¿ÉÒÔ·ÖÒ³£¬µ«ÊÇÎÒÔÚºóÃæÏë¼Ó¸öÌõ¼þ
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......