fill a table
-
I filled a table dynamically from the database, and I've also made clickable cells with javascript but the probleme the rendering is that i need to click on each cell contains order number to a page number clicked, and also I would like to avoid working with javascript, and here is the code I used.
TableRow r = new TableRow(); TableCell c0 = new TableCell(); TableCell c1 = new TableCell(); c0.Controls.Add(new LiteralControl(user\[key\].num)); c0.Attributes.Add("onclick", "onclickpage()"); c0.Style.Add("cursor","hand"); c1.Controls.Add(new LiteralControl(user\[key\].nom)); r.Cells.Add(c0); r.Cells.Add(c1); Table1.Rows.Add(r);
thank you
-
I filled a table dynamically from the database, and I've also made clickable cells with javascript but the probleme the rendering is that i need to click on each cell contains order number to a page number clicked, and also I would like to avoid working with javascript, and here is the code I used.
TableRow r = new TableRow(); TableCell c0 = new TableCell(); TableCell c1 = new TableCell(); c0.Controls.Add(new LiteralControl(user\[key\].num)); c0.Attributes.Add("onclick", "onclickpage()"); c0.Style.Add("cursor","hand"); c1.Controls.Add(new LiteralControl(user\[key\].nom)); r.Cells.Add(c0); r.Cells.Add(c1); Table1.Rows.Add(r);
thank you
tek 2009 wrote:
but the probleme the rendering is that i need to click on each cell contains order number to a page number clicked
You just made a mess out here. Your question is not at all clear of what you want to do and what is the issue. Please rephrase/update the question with what you are looking at.