I have a linkbutton that works fine just one time, the second click does not respond in Chrome but it works in Internet Explorer. This only happens in my production environment, but dev works fine.
While debugging, I can tell that is not reaching my linkEdit_Click Sub.
I tried with EnableViewState="false" and it didnt work.
I've changed the way of how linkEdit_Click is called, with CommandArgument in the gridview and changing the OnClick for OnCommand.
In DevTools I notice a 403 forbidden error in the second click but I dont know how to fix it
My code is something like this:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="grid1>
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="linkEdit" runat="server"
Text="Update" OnClick="linkEdit_Click" CausesValidation="false">
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
Code behind:
Protected Sub linkEdit_Click(sender As Object, e As EventArgs)
_presenter.Edit(sender)
End Sub
ASP HTML Code, change to 'CommandName' instead of OnClick because you are using LinkButton property.
Codebehind use this function to trigger the Command.