Results 1 to 3 of 3

Thread: How to get datatextfield value from dropdownlist box

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2007
    Posts
    21

    How to get datatextfield value from dropdownlist box

    I have a dropdown list box on te form, it is filed with data. Now user is not making a selection from dropdown, instead want to get teh text field value from it, by using its value field information;

    I want to get the datatextfield value of a dropdownlist box for ID# 7.

    Thank you very much for the info.

  2. #2
    Fanatic Member
    Join Date
    Feb 2006
    Posts
    592

    Re: How to get datatextfield value from dropdownlist box

    i'm not sure that i understod your question but, if i did then you can get the 7th item text value like following:

    Dim myString As String = Me.DropDownList1.Items(6).Text

    HTH
    Regards

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: How to get datatextfield value from dropdownlist box

    Explain your question again... do you want to do this server side or client side?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width