I have an ImageButton in webform that represents directories in a grid using repeater. How to do that with 1 click just select the button, and only open with two clicks?
<asp:Repeater ID="rtInlineBlock" runat="server">
<ItemTemplate>
<div class="block">
<asp:HiddenField ID="idDirectorio" runat="server" Value='<%# Eval("guid") %>' />
<asp:ImageButton ID="btSend" runat="server" ImageUrl='<%# Eval("imgPath") %>' OnClick="btSend_Click" />
<div class="bottom">
<asp:Label ID="lblNome" runat="server" Text='<%# Eval("xInfo") %>' />
</div>
</div>
</ItemTemplate>
</asp:Repeater>
Codebehind:
protected void btSend_Click(object sender, ImageClickEventArgs e)
{
var btSend = sender as ImageButton;
var rtItem = btSend.Parent as RepeaterItem;
var idDiretorioSelecionado = rtItem.FindControl("idDirectorio") as HiddenField;
//faz algo
}
I just want you to enter this example with a double click.
That way he called the event by clicking once, I wanted to click once and just select and I can handle it, and with two open the event.