| Author: Prem 04 Jul 2009 | Member Level: Silver | Rating:  Points: 2 |
hi, use this codes..
Protected Sub AddButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles AddButton.Click Dim count As Integer Dim i As Integer = 0 Dim li As ListItem Try For count = 0 To Me.FirstListBox.Items.Count - 1 If FirstListBox.Items(count - i).Selected Then li = FirstListBox.Items(count - i) Me.SecondListBox.Items.Add(li) Me.FirstListBox.Items.RemoveAt(count - i) i = i + 1 End If Next Catch ex As Exception Response.Write(ex.Message + "<br />" + ex.StackTrace) End Try End Sub
|
| Author: Devendra 04 Jul 2009 | Member Level: Gold | Rating:  Points: 2 |
Dear To write java script you have to write following codes on page load event
Button1.Attributes.Add("OnClick","Function Name");
Write Javascript Function And Make your code inside that.
Thanks dkmisra
|