ListBox drag and drop

2 posts, 0 answers
  1. Chad
    Chad avatar
    10 posts
    Member since:
    Feb 2013

    Posted 26 Sep 2013 Link to this post


    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

    Thanks for the help.

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Sep 2013 Link to this post

    Hi Chad,

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

    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>")
    End Sub

  3. DevCraft R3 2016 release webinar banner
Back to Top