944,043 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 4299
  • VB.NET RSS
Feb 23rd, 2006
0

How do i save values of text boxes to database?

Expand Post »
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!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Mikecool509 is offline Offline
21 posts
since Jan 2006
Feb 24th, 2006
0

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

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????
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Issue related to combobox....
Next Thread in VB.NET Forum Timeline: How to use data in SQL Server 2000 to build bar chart using MS Chart ?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC