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 = ?">
Edit/Update not saving data
Try to add
to the definition of GridView component:
Code: Select all
DataKeyNames="id"
Code: Select all