Write contents of Dropdown list to a database

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Write contents of Dropdown list to a database

    i am dynmically creating a dropdown list and i am wondering how to
    write the contents of the dropdown list to a database.

    Purpose: i am creating program which allows you to create a
    questionaire. And i have a page which allows the person creating the
    questionaire to enter a question and all the possible answers to the
    question (the answers are added to the dropdown list). I want to be
    able to write this dropdown list to a single field in the database.
    Remember i am dynmanically creating the dropdown list so it will vary
    in size depending on the question.

    i have been stuck on this for ages.
    any help greatly appreciated

    Cheers
    BubbaGump Guest

  2. Similar Questions and Discussions

    1. write to database without giving write permission to IIS
      Hi there, I have some ASP code that writes to access database. For security reason I do not want IUSER to give write permission to database...
    2. Write entire contents of dropdown list to a database
      i am dynmically creating a dropdown list and i am wondering how to write the contents of the dropdown list to a database. Purpose: i am creating...
    3. dropdown list and database connection
      I'm new to ASP and database programming but I am trying to connect to a database using a concatenation of a strings and a menu item from a form....
    4. List all and field names database contents
      I have been provided with a DSN, user name and password for one of my clients sites. I'm not an ASP developer and need to view all the contents...
    5. Another user has modified the contents of this table or view; the database row you are modifying no longer exists in the database;
      Hi, I am testing a trigger that and I am getting this error message saying "Another user has modified the contents of this table or view; the...
  3. #2

    Default Re: Write contents of Dropdown list to a database

    On 25 Feb 2004 03:04:52 -0800, [email]octopusses_garden@hotmail.com[/email]
    (BubbaGump) wrote:
    >i am dynmically creating a dropdown list and i am wondering how to
    >write the contents of the dropdown list to a database.
    >
    >Purpose: i am creating program which allows you to create a
    >questionaire. And i have a page which allows the person creating the
    >questionaire to enter a question and all the possible answers to the
    >question (the answers are added to the dropdown list). I want to be
    >able to write this dropdown list to a single field in the database.
    >Remember i am dynmanically creating the dropdown list so it will vary
    >in size depending on the question.
    This appears rather simple unless I'm missing something (especially
    since a few days ago I was facing writing a similar app). You're
    creating the dropdown, so you can obviously get the input of the
    dropdown items. As you get them, append them to a string, separated
    by a delimiter such as a comma (probably too common) or a pound sign
    or any other character. Write that string to the database field (Text
    or Memo) and when you read it back put, parse for the delimiter and
    split it as needed.

    Jeff
    Jeff Cochran Guest

  4. #3

    Default Re: Write contents of Dropdown list to a database

    Perhaps also use JavaScript to update a hidden field at the same time
    you're updating the listbox. And if you have a character like | that
    separates each item you can then later Split() things out:

    Parsing with join and split - 5/9/1999
    [url]http://www.4guysfromrolla.com/webtech/050999-1.shtml[/url]

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Developer
    [url]http://www.Bullschmidt.com[/url]
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139