Administrator

Administrator

  • Tech Writer
  • 2.2k
  • 1.5m

Drop down list problem!

Feb 27 2003 10:05 AM
Hi there I have an error when I'm dynamically setting up an asp.net dropdown list. I am setting both the DataValueField AND the DataTextField to equal a field called CompanyName from one of my tables. When I view the source code of the finished page I see which is fine. When I try and insert the value of this drop down list into a field called cmsID in another table, it works, but when I check the database, the contents of the field cmsID is "CompanyName" instead of "Abacus" or "EIA" - what have I done wrong? here's the full script...