F
Fabrizio
Hi,
In my project I'm creating a dataset that will show items with pictures on a
datalist.
I use an imagebutton for each record in a datalist, and I would like to
associate the on click event with the Imagebutton for each different item.
When I try to associate a "onclick" event,simply doesn't work.
that's the code I use once the dataset is created and after the databind of
the datalist :
foreach (DataListItem item in datalist1.Items)
{
[-......]
minia01 = new ImageButton();
[...]
minia01 = (ImageButton)item.FindControl("minia01");
minia01.Click +=new ImageClickEventHandler(minia01_Click);
Any suggestion?
Thank you
Fabrizio
In my project I'm creating a dataset that will show items with pictures on a
datalist.
I use an imagebutton for each record in a datalist, and I would like to
associate the on click event with the Imagebutton for each different item.
When I try to associate a "onclick" event,simply doesn't work.
that's the code I use once the dataset is created and after the databind of
the datalist :
foreach (DataListItem item in datalist1.Items)
{
[-......]
minia01 = new ImageButton();
[...]
minia01 = (ImageButton)item.FindControl("minia01");
minia01.Click +=new ImageClickEventHandler(minia01_Click);
Any suggestion?
Thank you
Fabrizio