473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Updating Database Problem

Here is the situation

1. I populate(without binding) a blank form with data from a datareader that
gets its data from sql2000
2. I edit the data in the form
3. On submit I execute an update statement
4. The values that are used in the update are the original values i pulled
in from the datareader in point 1. not the edited values in point 2.

I'm sure I'm missing something stupid. Can anyone help??

Chris
Nov 18 '05 #1
3 931
I got IT

IsPagePostback sorted this out
"Chris D" <qw*****@hotmail.com> wrote in message
news:3f********@news.nucleus.com...
Here is the situation

1. I populate(without binding) a blank form with data from a datareader that gets its data from sql2000
2. I edit the data in the form
3. On submit I execute an update statement
4. The values that are used in the update are the original values i pulled
in from the datareader in point 1. not the edited values in point 2.

I'm sure I'm missing something stupid. Can anyone help??

Chris

Nov 18 '05 #2
is the form getting populated again before the submit event?

Steve
"Chris D" <qw*****@hotmail.com> wrote in message
news:3f********@news.nucleus.com...
Here is the situation

1. I populate(without binding) a blank form with data from a datareader that gets its data from sql2000
2. I edit the data in the form
3. On submit I execute an update statement
4. The values that are used in the update are the original values i pulled
in from the datareader in point 1. not the edited values in point 2.

I'm sure I'm missing something stupid. Can anyone help??

Chris

Nov 18 '05 #3
I belive it was.

IsPagePostback sorted this out

"Steve Drake" <Steve@_NOSPAM_Drakey.co.uk> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
is the form getting populated again before the submit event?

Steve
"Chris D" <qw*****@hotmail.com> wrote in message
news:3f********@news.nucleus.com...
Here is the situation

1. I populate(without binding) a blank form with data from a datareader

that
gets its data from sql2000
2. I edit the data in the form
3. On submit I execute an update statement
4. The values that are used in the update are the original values i pulled in from the datareader in point 1. not the edited values in point 2.

I'm sure I'm missing something stupid. Can anyone help??

Chris


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
1
by: gaosul | last post by:
I am non-programming scientist and I am using a Program called Easyarticles from Synaptosoft Inc., which is based the database program Access. Unfortunately, the owner of this company has...
5
by: junglist | last post by:
Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated...
1
by: Luis Esteban Valencia | last post by:
Hello Everyone, Iam an intermediate ASP.Net programmer and iam facing a challenging task. I have a table in MS-SQL server database called 'Members'. The table has following fields... ...
3
by: | last post by:
Hello, I have created an ASP.NET 2.0 application that utilized a Gridview Control to display and update/delete data. The problem I am having is that the gridview control is displaying the data...
10
by: jaYPee | last post by:
does anyone experienced slowness when updating a dataset using AcceptChanges? when calling this code it takes many seconds to update the database SqlDataAdapter1.Update(DsStudentCourse1)...
14
by: Lars Netzel | last post by:
A little background: I use three Datagrids that are in a child parent relation. I Use Negative Autoincrement on the the DataTables and that's workning nice. My problem is when I Update these...
4
by: Geoff | last post by:
Hi I'm hoping somebody can help me with the following problem that has occurred to me. Suppose I have two tables in an SQL Server database. Let's call these tables A and B. Assume that A has...
33
by: bill | last post by:
In an application I am writing the user can define a series of steps to be followed. I save them in a sql database using the field "order" (a smallint) as the primary key. (there are in the range...
10
by: chimambo | last post by:
Hi All, I have a little problem. I am retrieving records from a table and I want to update the records using checkboxes. I am able to display the database record quite alright and I have created...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.