This is a migrated thread and some comments may be shown as answers.

ListBox drag and drop

1 Answer 74 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Chad
Top achievements
Rank 1
Chad asked on 26 Sep 2013, 07:38 PM
Hi,

I am creating two listboxes and want to incorporate drag and drop properties.  Both listboxes are populated using a database.  When I am transfering the items from one textbox to another I am trying to update the database, however I am unable to get the productID or value.

My question is how do i retrieve a value from a list box item?

ASP 4.0
Visual Studio 2012
VB.net

Thanks for the help.

Chad-

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Sep 2013, 09:14 AM
Hi Chad,

Please try the following code that I tried to access value from RadListBox.

VB:
Protected Sub RadListBox1_Transferring(sender As Object, e As RadListBoxTransferringEventArgs)
    For Each item As RadListBoxItem In RadListBox1.SelectedItems
        Response.Write("<script>alert('" + item.Text + "');</script>")
    Next
End Sub

Thanks,
Princy.
Tags
ListBox
Asked by
Chad
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or