Results 1 to 3 of 3

Thread: ddSegID.DataTextField = "SEG_NM"

  1. #1

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    ddSegID.DataTextField = "SEG_NM"

    Im binding my dropdown list textfield to a a row from my datasource, what i dont know how to do is add a string which contains another field and a "-".

    I tried

    ddSegID.DataTextField = ("SEG_ID" + " - " + "SEG_NM")

    but it doenst work

  2. #2
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251

    Re: ddSegID.DataTextField = "SEG_NM"

    in your SQL statement you could do:

    Select SEG_ID + ' - ' + SEG_NM as ConcatField From .......

    Then

    ddSegID.DataTextField = ("ConcatField")
    ~Ryan





    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Re: ddSegID.DataTextField = "SEG_NM"

    Quote Originally Posted by rdove
    in your SQL statement you could do:

    Select SEG_ID + ' - ' + SEG_NM as ConcatField From .......

    Then

    ddSegID.DataTextField = ("ConcatField")
    Thanks RDove someone already suggested this and i amended my stored procedure.

    Cheers

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