Asp net gridview rowupdating firing twice


20-Jan-2018 09:30

I started putting debug statements at the entry points to the critical parts of the code, this yielded an interesting output on my development machine, each time the cross or the tick was clicked Unpublished Grid View_Row Command was fired twice.This gave me something to search for, seems I am not the only one to have this problem, Microsoft tried to reproduce it in 2006 but couldn’t. Yes, I did put the breakpoint at the Row Updating line (and not in the function).You have to make sure that you aren't setting your Grid View's data when it is not postback.I put a breakpoint on the Row Updating event handler and found that the event is not fired. I put a breakpoint on the Row Updating event handler and found that the event is not fired. In the Row Editing function, the edit textboxes appear and I can get the "old" values Then the page renders, I edit the textboxes and hit Update.Right now, I have not written code for the Update event. Right now, I have not written code for the Update event. Then the page posts back, the text boxes go back to being labels and the new values are lost, and the Row Updating code never fires.The user explained to me that when they were publishing courses they were always published in pairs, equally when unpublishing courses it was being done in pairs, concealingly unpublishing a course with bookings.

When I hit Update, the changes are not saved, and there is no error message. When I hit Update, the changes are not saved, and there is no error message. Then the page posts back, the text boxes go back to being labels and the new values are lost, and the Row Updating code never fires. Yes, I did put the breakpoint at the Row Updating line (and not in the function).As it turns out there are several ways of fixing the problem, several people have used timers to “debounce” the Row Command event, assuming that the event is always going to be fired twice a session variable can be used to filter out the second event.



When Sonne leaves with her, he is told by Boxer to return soon.… continue reading »


Read more

According to My Wot, Siteadvisor and Google safe browsing analytics, is a suspicious domain with mostly negative visitor reviews.… continue reading »


Read more

As far as I know, less than a dozen of these game boxes exist today.… continue reading »


Read more

“The Best of Enemies” an excellent documentary from Academy Award-winning director Morgan Neville compellingly tells the story of that feud.… continue reading »


Read more

But a gigantic dome to accommodate its occasional humongous gatherings seems, at first glance, excessive and out of character even for a church that is proudly marking its centennial year. Amado Araneta who built the Araneta Coliseum in the 1950s and made it the centerpiece of a 35-hectare business district in Cubao, Quezon City, the elders of the INC have been inspired by a vision of a modern city rising up from the rice fields of Bocaue, Bulacan.… continue reading »


Read more

Often, this separation occurs after a time of silence between you and the narcissist.… continue reading »


Read more