The day before yesterday, I said that the DataGrid control in Aspx can implement the editing function, so I want to try, refer to the MSDN code. . . How do you update it when you update? . . It is said that a Findby function is not defined, can only think about it, and then think of using the SQL statement to update, so I wrote the commandtext, update, and the result can't get the value of the input box when I can't get the value of the input box. I have the original database. Value. gosh. . . Just a day, there is no way to solve it.
Today, the result is still not, then read the book, and see the ispostback status, I originally populated DataSet directly in the Page_Load function, there is no management of the ISPOSTBACK status, so it is added! IsPostBack does not perform DataGrid bindings, and the results success.
The original Page_Load function takes precedence over the Update function, does not process the ISPOSTBACK status, which will directly write the value of the database into the DataGrid, and then retrieve the value is just the value of the original database. . .
Although the problem is not large, the process of solving the problem has learned a lot of relevant knowledge. . . Quite happy