Giving ID dynamically
-
Hello All, Want to creat a table dynamically in HTML page as
<%for(int i=0;i<8;i++){%> <%for (int j = 0;j<8;j++){%> <%} %> <%} %> ' >Data
But unfortunately I have been unable to set the ID value of element properly. I want to give ID value of element as a combination of 'i' and 'j' say 1st row 1st cell as 11, 1st row 2nd cell as 12 .... Can anyone help me out setting the ID value properly using loop control variable i and j.
Thanks, Arindam D Tewary
-
Hello All, Want to creat a table dynamically in HTML page as
<%for(int i=0;i<8;i++){%> <%for (int j = 0;j<8;j++){%> <%} %> <%} %> ' >Data
But unfortunately I have been unable to set the ID value of element properly. I want to give ID value of element as a combination of 'i' and 'j' say 1st row 1st cell as 11, 1st row 2nd cell as 12 .... Can anyone help me out setting the ID value properly using loop control variable i and j.
Thanks, Arindam D Tewary
Why not use a datagrid?