G
greg
Hi
here is what I am doing - building a table dynamically
HtmlTableRow objRow = new HtmlTableRow();
tblStuff.Rows.Add(objRow);
HtmlTableCell objCellMain1 = new HtmlTableCell();
ImageButton btn1 = new ImageButton();
objCellMain1.Controls.Add(btn1);
btn1.Click += new
System.Web.UI.ImageClickEventHandler(this.changeBtn_Click);
btn1.AlternateText = "333";
objRow.Cells.Add(objCellMain1);
and of course I have that method defined
private void changeBtn_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
// get id
ImageButton btn = (ImageButton)sender;
String vid = btn.AlternateText;
etc etc.
IT shows on the screen fine
But when I click on the button it does not go into changeBtn_Click
!!!!! HELP
Thanks
GSL
here is what I am doing - building a table dynamically
HtmlTableRow objRow = new HtmlTableRow();
tblStuff.Rows.Add(objRow);
HtmlTableCell objCellMain1 = new HtmlTableCell();
ImageButton btn1 = new ImageButton();
objCellMain1.Controls.Add(btn1);
btn1.Click += new
System.Web.UI.ImageClickEventHandler(this.changeBtn_Click);
btn1.AlternateText = "333";
objRow.Cells.Add(objCellMain1);
and of course I have that method defined
private void changeBtn_Click(object sender,
System.Web.UI.ImageClickEventArgs e)
{
// get id
ImageButton btn = (ImageButton)sender;
String vid = btn.AlternateText;
etc etc.
IT shows on the screen fine
But when I click on the button it does not go into changeBtn_Click
!!!!! HELP
Thanks
GSL