C# ASP.NET update SQL database with values from text boxes
Posted
by Sir Graystar
on Stack Overflow
See other posts from Stack Overflow
or by Sir Graystar
Published on 2010-06-06T10:34:35Z
Indexed on
2010/06/06
10:42 UTC
Read the original article
Hit count: 269
Here's what I have. User enters values into text boxes (personal information etc.) and then presses a save changes button. The values in these text boxes get stored in an SQL database.
The problem I have is that when updating the database using the values from the text boxes, the page refreshes and the values in the text boxes are lost (or rather they return to the values that are already in the database as the data from the database is loaded into the text boxes on Page_Load).
When I update the database using valuse stored in variables it all works fine. What is the best way to update with the values from the text boxes?
© Stack Overflow or respective owner