-4

i have a asp.net webpage, it has 4 textboxes which stores value into a sql database, i have created a gridview to this table, but it is showing values in the table before pageload when i create a record using save button on this page the record is created on the background but it is not updated on the gridview. How to bind the gridview with the buttons events on the page.

4

1 回答 1

0

欢迎来到堆栈溢出。

在保存按钮上调用网格绑定功能。这会导致网格重新绑定。

提供代码以获得更好的答案。

这些链接可能会有所帮助:

回发后 GridView 未正确重新绑定

重新绑定网格视图与编辑模式有什么关系?

记住即使是问题也有帮助。

于 2013-11-11T09:54:53.347 回答