troubleshooting Question

updating database from multiple textboxes

Avatar of jvoconnell
jvoconnell asked on
.NET ProgrammingASP.NETVisual Basic.NET
5 Comments2 Solutions631 ViewsLast Modified:
Experts,

Newbie question.

I have a web form and the code-behind is VB.net. The database is SQL Server 2005.

The form is to enter patient data. It was set up with different sections (i.e. Patient Info, Physician info...)

The form contains @30 textboxes. The users need to enter the patient info, click a button and update the database. This works fine.

The users also need to lookup patient records, edit the data and update the database. This also works fine if the patient has one record.

So, the problem is for patients with multiple records.
The users enter a patient ID. I need to bring in all of the records for a patient (this is typically 5-10).

The first record that populates all of the textboxes on the form should be the most recent (DATE_ENTERED filed in the database).

The users want a button to move to the next record(s). They will eventually make a change on one of the records. They want to click a button and have the changes eventually update the database.

Currently, if the patient only had one record, it works by populating atll of the textboxes from a datareader. then when a button is clicked it updates the database with a sql command.

Any assistance handling a situation where the patient has multiple records  is greatly appreciated.

Thank you.
ASKER CERTIFIED SOLUTION
gdupadhyay

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros