Mike Chambers

Mike Chambers

  • NA
  • 3
  • 2.2k

populating a form with data from a SQL server, then updating

Dec 22 2010 2:10 PM
Hello, I wrote a form which so far just consists of text fields and checkboxes.  The data from previous entries is loaded when the page loads and then I set the values of each field (for example, contactname.Text = dbread["contactname"].ToString();).  The problem is that when I populate the fields on page load, the stored procedure I'm using to update the values uses this information rather than the information actually current in the TextBoxes.  I want users to be able to change and update the information, but also have it preloaded with the last data they submitted.  Any advice would be greatly appreciated.

Thanks.

Answers (2)