Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
We are handling two scenarios in grid:
1) Doing below in row created event for firing selectIndexChanged event on row click of the grid

e.Row.Attributes.Add(AttributeOnClick, Page.ClientScript.GetPostBackEventReference(grid.Id, "Select$" + e.Row.RowIndex.ToString()));

2) Also Setting Command name for Image Button in first cell of the grid as Delete so Grid delete event fired on click of image button as below
XML
<ItemTemplate>
                                    <ImageButton ID="imbDelete" CommandName="Delete" runat="server" SkinID="DeleteButton"
                                        ToolTip="<%$ Resources:TCMResources,242 %>" CausesValidation="false" />
                                </ItemTemplate>



all these scenarios were running fine before upgrade to .net 4.5.
but now, these are getting conflicted and delete operation is getting hanged. as after clicking delete button , select is getting fired as its part of the same row (Begin Request/End request is getting called for Select) and then(Begin request for Delete Operation)So, application getting hanged as End request not called)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900