I want to change imageurl which image button I click in datalist.So I must get a diffence propertie of imagebutton in datalist.My code is below;
<asp:DataList ID="datalistcevaplar" runat="server"
Width="740px" OnItemCommand="datalistcevaplar_ItemCommand" >
<ItemTemplate>
<div class="divcvponay">
<asp:ImageButton ID="imgbtncevaponayla" runat="server" OnCommand="tiklanan" ImageUrl="~/resimler/cevaponaybeyaz.jpg"/>
</div>
</ItemTemplate>
</asp:DataList>
and my cs.codes;
protected void datalistcevaplar_ItemCommand(object source, DataListCommandEventArgs e)
{
if (e.CommandName=="tiklanan")
{
}
}
why it doesnt fire datalistcevaplar_ItemCommand event.And how do I get which imagebutton I clicked in datalist