Page 1 of 1

Edit/Update not saving data

Posted: Tue 02 May 2006 16:45
by tqdesign
This is the code that I have. Whenever I edit then update, it does not save the data to the file. Can someone tell me what I am doing wrong?

Thanks,




Updating Data Using GridView

















"
EnableCaching="True" SelectCommand="SELECT id, title, svalue FROM serving"
ProviderName=""
UpdateCommand="UPDATE serving SET title = ?, svalue = ? WHERE id = ?">










Posted: Wed 03 May 2006 07:53
by Alexey
Try to add

Code: Select all

DataKeyNames="id"
to the definition of GridView component:

Code: Select all