Ok, I think I've solved part of the problem:
imagen = Array.CreateInstance( typeof(HtmlInputImage), nFilas, nColumnas);
Panel1.Height = nColumnas * 15 + 2;
for (int j=0; j<nFilas; j++)
{
HtmlTableRow r = new HtmlTableRow();
r.BgColor="Gainsboro";
r.Height = "15";
for (int i=0; i<nColumnas; i++)
{
//c.Controls.Add(image);
HtmlTableCell c = new HtmlTableCell();
HtmlInputImage image = new HtmlInputImage();
image.Src = "images/tapada.jpg";
imagen.SetValue(image, j, i);
c.Controls.Add((HtmlInputImage)imagen.GetValue(j, i));
c.Height = "15";
r.Cells.Add(c);
}
Table2.Rows.Add(r);
Table2.Align = "Center";
}
Table2.Width = Convert.ToString(nColumnas*15);
Now, anybody could tell me how to capture the onclick event on every image, passing the coordinates?
Thanks to all!!! :)
-------------------------------
World only exists into your mind.
|