Click here to Skip to main content
15,902,447 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How can I loop through all the html tables in runat server, using javascript code or code behind, to change all tr and tds direction?
Posted
Updated 1-Aug-10 23:45pm
v2
Comments
Sandeep Mewara 25-Jul-10 12:14pm    
Last part of the question not quite clear.
Dalek Dave 2-Aug-10 5:45am    
Edited for Readability and Grammar.

Taking a wild stab here, but I would start by getting the contents of the Response object, and parsing that.
 
Share this answer
 
I used to do this in .cs

ArrayList aList = new ArrayList();
foreach (DataRow dr in ds.Tables[0].Rows)
{
TableRow tb_tr = new TableRow();
TableCell tb_tc1 = new TableCell();
TableCell tb_tc2 = new TableCell();
TableCell tb_tc3 = new TableCell();
TableCell tb_tc4 = new TableCell();
TableCell tb_tc5 = new TableCell();
TableCell tb_tc6 = new TableCell();
TableCell tb_tc7 = new TableCell();
//...retrieve data
tb_tr.Controls.Add(tb_tc1);
tb_tr.Controls.Add(tb_tc2);
tb_tr.Controls.Add(tb_tc3);
tb_tr.Controls.Add(tb_tc4);
tb_tr.Controls.Add(tb_tc5);
tb_tr.Controls.Add(tb_tc6);
tb_tr.Controls.Add(tb_tc7);
asptableid.Controls.Add(tb_tr);
}
 
Share this answer
 
v4
Comments
Dalek Dave 2-Aug-10 5:46am    
Code Blocked for you :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900