GridView doing double postback when using ImageButton for Delete

I just spent a bit of time trying to figure out why my GridView was randomly doing a double postback when deleting rows.  When I hooked up the debugger and put a break point on in the Page_Load, I would see that it was being called twice.  It turns out that there is a bug with the GridView that causes this behavior.  If you use either a LinkButton or regular Button, the GridView works as expected.  There is also a workaround @ http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=105123


Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

November 21. 2008 06:41 PM