How do i save values of text boxes to database?

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2006
Posts: 21
Reputation: Mikecool509 is an unknown quantity at this point 
Solved Threads: 0
Mikecool509's Avatar
Mikecool509 Mikecool509 is offline Offline
Newbie Poster

How do i save values of text boxes to database?

 
0
  #1
Feb 23rd, 2006
Hi again. What i am trying to do is have people be able to input data into various textboxes, multiple times. For example, if there is a field that says name, i want them to be able to put in "bob", and then click next, have that value saved, and then have them be able to input another name. I want all of the values of the textboxes stored, so when they are done, they get sent to a summary page, which shows them the results of what they typed, and then have the data posted intomy database. This presents two problems. One is how should i store the values of the textboxes. I thought about an array list but i wasn't sure. The second problem is that right now i have an arrylist that is catching the values (this is not working, so will need to change it later), but when I go to the summary page, i get an error saying that the nvarchar can not be converted to an int value. My database does have int value columns, but my program needs them. I am at a standstill. If this is unclear, please let me know, and I will paste in some of my code. Than you so much!
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: How do i save values of text boxes to database?

 
0
  #2
Feb 24th, 2006
ok, yeah that is a little unclear. You are trying to save names into an integer column in your database because your program requires that the names be integers????
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC