J
Japskunk
I am having trouble updating a SQL table through the GridView "Auto"
Enable Edit Feature...
I am connecting to a SQL 2000 Server with a SQLDataSource
I have created the Update Query in the Command and Parameter Editor
setup when I created my SQLadapter, along with Select and Delete.
Here is the Update Command:
UPDATE TBLUPSData SET UPSModel = @original_UPSModel, UPSLocation =
@original_UPSLocation, UPSDeviceAttached = @original_UPSDeviceAttached
WHERE UPSID = @original_UPSID
I also have each 4 parameters associated to the
GridView1.selectedvalue control
When I click on the Query Builder in the Command and Parameter
Editor, I can execute the query and actually update the tables, When
I try editing the GridView1 table in run mode, all the values that I
change after clicking the edit link and pressing the update link (on
the GridView table), nothing changes in my table?
I have also done the exact same for the delete command and it doesn't
work in GridView while in run mode but will in the query builder.
What am I missing here?
I am a noob to Visual Studios 2003/2005 data binding, are there any
good tutorials that move past the Select statement and actually help
with updating or inserting data based on user input? Cause I cant seem
to find anything good.
Thanks
Enable Edit Feature...
I am connecting to a SQL 2000 Server with a SQLDataSource
I have created the Update Query in the Command and Parameter Editor
setup when I created my SQLadapter, along with Select and Delete.
Here is the Update Command:
UPDATE TBLUPSData SET UPSModel = @original_UPSModel, UPSLocation =
@original_UPSLocation, UPSDeviceAttached = @original_UPSDeviceAttached
WHERE UPSID = @original_UPSID
I also have each 4 parameters associated to the
GridView1.selectedvalue control
When I click on the Query Builder in the Command and Parameter
Editor, I can execute the query and actually update the tables, When
I try editing the GridView1 table in run mode, all the values that I
change after clicking the edit link and pressing the update link (on
the GridView table), nothing changes in my table?
I have also done the exact same for the delete command and it doesn't
work in GridView while in run mode but will in the query builder.
What am I missing here?
I am a noob to Visual Studios 2003/2005 data binding, are there any
good tutorials that move past the Select statement and actually help
with updating or inserting data based on user input? Cause I cant seem
to find anything good.
Thanks