Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Binding form elements to database using specific names

Status
Not open for further replies.

danm1

Technical User
Dec 5, 2003
10
US
Hello,
My shopping cart program gets product information using hidden form elements with specific names for each piece of information. For instance, a hidden element with the name "Item" would take the value of whatever name you want to call your product. The name of the form element has to be one that the program accepts, I cannot change these names. This is okay for manually entering the information, but I want to use ASP to enter the information for me. However, when I make a hidden form element and I want to bind it to the appropriate field in the database, Go Live makes the field name from the database the name of the form element and appends an to the end. So, if the database field is "productname" the form elment becomes "productname" and I can't change it to "Item" like it should be. Is there a way where I can make the form element name whatever I want when I am dynamically binding it to the database field?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top