Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 GridView,它由每行中的 Textbox 组成,并且它的 textmode 属性设置为“Multiline”。
每当我编辑文本框并单击保存按钮时,gridview 中编辑的文本框会显示旧值一秒钟,保存在数据库中并绑定新值。
GridView包含在UpdatePanel 中,并且其ViewState 属性设置为false。仅在保存记录后才进行绑定。
我不知道哪里出了问题。
我觉得这与您的数据绑定有关。
尝试将 viewstate 设置回 true,然后将您的 gridview 数据绑定到
1) !Page.IsPostback 2) 完成保存操作后