OK !
here is my .aspx form: it is listBox =itemsfor choose,checkBox =add to cart,listBox=choosen items and submit button :
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="testASPNet2.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 100; LEFT: 219px; POSITION: absolute; TOP: 288px" runat="server" Width="102px" Height="23px" Text="Submit"></asp:Button>
<asp:Label id="Label2" style="Z-INDEX: 106; LEFT: 139px; POSITION: absolute; TOP: 187px" runat="server" Width="106px" Height="24px">Choosen Item :</asp:Label>
<asp:CheckBox id="CheckBox1" style="Z-INDEX: 101; LEFT: 176px; POSITION: absolute; TOP: 121px" runat="server" Width="101px" Text="Add to cart"></asp:CheckBox>
<asp:ListBox id="ListBox1" style="Z-INDEX: 102; LEFT: 264px; POSITION: absolute; TOP: 44px" runat="server" Width="128px" Height="61px">
<asp:ListItem Value="1">item #1</asp:ListItem>
<asp:ListItem Value="2">item #2</asp:ListItem>
<asp:ListItem Value="3">item #3</asp:ListItem>
<asp:ListItem Value="4">item #4</asp:ListItem>
</asp:ListBox>
<asp:Label id="Label1" style="Z-INDEX: 104; LEFT: 171px; POSITION: absolute; TOP: 46px" runat="server" Width="69px" Height="24px">Items to Choose :</asp:Label>
<asp:ListBox id="ListBox2" style="Z-INDEX: 105; LEFT: 262px; POSITION: absolute; TOP: 181px" runat="server" Width="135px" Height="76px"></asp:ListBox>
</form>
</body>
</HTML>
And here my .aspx.vb form :
Public Class WebForm1
Inherits System.Web.UI.Page
Protected WithEvents Button1 As System.Web.UI.WebControls.Button
Protected WithEvents CheckBox1 As System.Web.UI.WebControls.CheckBox
Protected WithEvents ListBox1 As System.Web.UI.WebControls.ListBox
Protected WithEvents ListBox2 As System.Web.UI.WebControls.ListBox
Protected WithEvents Label2 As System.Web.UI.WebControls.Label
Protected WithEvents Label1 As System.Web.UI.WebControls.Label
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
'Here I just want to insert/add choosen items to second ListBox by javascript
'without sending to server
End Sub
End Class
So I need to get values from one List to another at client side !
Thanks for any idea !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!