开发者

ASP.NET GridView e.NewValues == e.OldValues

开发者 https://www.devze.com 2023-01-28 11:06 出处:网络
Why would a GridView control\'s RowUpdating/RowUpdated event arguments开发者_如何学Go have NewValues == OldValues regardless of user input?I\'ve found the answer to this now after some poking and rear

Why would a GridView control's RowUpdating/RowUpdated event arguments开发者_如何学Go have NewValues == OldValues regardless of user input?


I've found the answer to this now after some poking and rearranging.

Seemingly it was a DataBind in page load that was resetting the new values to the old ones before the event handler. Should have guessed.... :)

0

精彩评论

暂无评论...
验证码 换一张
取 消