Is it possible to place two buttons in the same position in an aspx page. Depending on some condition, it has to display one among them.
<asp:ImageButton ID="btnapply" ImageUrl="../images/apply.gif" runat="server"
ImageAlign="Right" OnClick="imgApply_Click" ValidationGroup="0" />
<asp:ImageButton ID="btnremove" ImageUrl="../images/remove.gif" runat="server"
ImageAlign="Right" OnClick="imgremove_Click" ValidationGroup="0" />
Option 1: If you can make the decision as the page is rendered, i.e. server-side:
In your code-behind:
In your .aspx page:
Option 2: If you need to make the decision client-side
In your .aspx page:
You can now have a piece of javascript that controls whether the buttons are visible, for example: