Results 1 to 3 of 3

Thread: Difference between DataTextField and DataValueField Properties of List Controls?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2006
    Posts
    20

    Difference between DataTextField and DataValueField Properties of List Controls?

    Can any one explain me the Difference between DataTextField and DataValueField Properties of List Controls?

    VBGaya.

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    Re: Difference between DataTextField and DataValueField Properties of List Controls?

    The DataTextField is the "Text" that is displayed to the user.
    The DataValueField is the selection value associated with the displayed text.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547

    Re: Difference between DataTextField and DataValueField Properties of List Controls?

    I'm no expert but I did find this for you:

    Remarks

    Use the DataTextField property to specify which field from the DataSource to bind to the Text property of each item in the control.

    This differs from the DataValueField property, which is used to specify the field that will provide the Value of each select option. DataTextField provides the selectable options that the user interacts with, while DataValueField provides the values that are used when submitting the form data.
    http://authors.aspalliance.com/aspxt...TextField.aspx

    hope this helps
    ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet?

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