M
Mick
Hi (again ^^)
In my ItemDataBound function,
I dynamically create an ImageButton.
I add to it an onclick event.
Anyway, when clicking my imagebutton, I don't raise the onclick event !
Any help will be appreciated ^^
*****
System.Web.UI.WebControls.ImageButton NewImg = new ImageButton();
NewImg.Click +=new ImageClickEventHandler(NewImg_Click);
NewImg.ImageUrl= Request.ApplicationPath + "/" +
dv.Row.ItemArray[3].ToString() ;
MyPlaceHolder.Controls.Add(NewImg);
private void NewImg_Click(object sender, ImageClickEventArgs e)
{
//code
}
In my ItemDataBound function,
I dynamically create an ImageButton.
I add to it an onclick event.
Anyway, when clicking my imagebutton, I don't raise the onclick event !
Any help will be appreciated ^^
*****
System.Web.UI.WebControls.ImageButton NewImg = new ImageButton();
NewImg.Click +=new ImageClickEventHandler(NewImg_Click);
NewImg.ImageUrl= Request.ApplicationPath + "/" +
dv.Row.ItemArray[3].ToString() ;
MyPlaceHolder.Controls.Add(NewImg);
private void NewImg_Click(object sender, ImageClickEventArgs e)
{
//code
}