I am having to have 2 buttons to correctly behave inside a div.
If I set a single button redirecting to a code behing method, it works fine:
<div class="divBtNavCommande">
<asp:LinkButton ID="bt_1" runat="server" OnClick="myAction">
My text 1
</asp:LinkButton>
</div>
If I add a second buttons redirecting to a link, the redirection works fine but the first button nolonger performs the code behind action:
<div class="divBtNavCommande">
<asp:LinkButton ID="bt_1" runat="server" OnClick="myAction">
My text 1
</asp:LinkButton>
<asp:LinkButton ID="bt_2" runat="server" PostBackUrl="~/MyPage.aspx">
My text 2
</asp:LinkButton>
</div>
And if I remove the PostBackUrl="~/myPage.aspx"
part, the first button works again.
What is wrong?