H
hans.bonefaas
Hi all,
I hope someone can help me with the following problem in ASP.net.
I want to edit the information for a record in a database (MS Access).
On the page I placed several textboxes and dropdownlistboxes. In the
page_load the information from the database is loaded a dataset. With
the following command I place the info from the dataset in the boxes:
txtFirstName.Text = ds.Tables(0).Rows(0).Item("FirstName")
The user can make changes and click a button. In the button click event
a SQL command is created to update the database. The problem is that
when I read the textbox.text value it isn't the value the user entered
but the original value from the dataset (database).
I think it has something to do with the viewstate, but the things I
have tried didn't work. (VIEWSTATE = false for the page and/or boxes)
There is probably another solution possible with the dataset, but
because I'm learning ASP.net I wanted to try this.
Hope someone can help or point me in another direction.
Thanks,
Hans
I hope someone can help me with the following problem in ASP.net.
I want to edit the information for a record in a database (MS Access).
On the page I placed several textboxes and dropdownlistboxes. In the
page_load the information from the database is loaded a dataset. With
the following command I place the info from the dataset in the boxes:
txtFirstName.Text = ds.Tables(0).Rows(0).Item("FirstName")
The user can make changes and click a button. In the button click event
a SQL command is created to update the database. The problem is that
when I read the textbox.text value it isn't the value the user entered
but the original value from the dataset (database).
I think it has something to do with the viewstate, but the things I
have tried didn't work. (VIEWSTATE = false for the page and/or boxes)
There is probably another solution possible with the dataset, but
because I'm learning ASP.net I wanted to try this.
Hope someone can help or point me in another direction.
Thanks,
Hans