ARC
Well-known member
I'm trying to figure out how (or find a tutorial that explains how) to change data in an sql database table in the OnClick of a button, on an asp.net website project.
Im aware of the gridviews ability to allow modifying however, I dont want there to be user access to how it changes... I just want to hardcode into the button click event the changes to be made to the value in a certain table at a specific spot.
lets say... I have a table CoolPeople and it contains:
ID
Name
FavoriteNumber
for columns... with with each Onlcick, I want to add 100 to the FavoriteNumber value for the selected index of the gridview.
I've looked through some video tutorials, but couldnt seem to find how to issue the sql statement/using the connection string/what-have-you... in a button click event.
Thanks in advance!
Im aware of the gridviews ability to allow modifying however, I dont want there to be user access to how it changes... I just want to hardcode into the button click event the changes to be made to the value in a certain table at a specific spot.
lets say... I have a table CoolPeople and it contains:
ID
Name
FavoriteNumber
for columns... with with each Onlcick, I want to add 100 to the FavoriteNumber value for the selected index of the gridview.
I've looked through some video tutorials, but couldnt seem to find how to issue the sql statement/using the connection string/what-have-you... in a button click event.
Thanks in advance!