javascript - asp.net add js to switching between tables by query -
i want add arrow above table , switching query. picture want switching week 35, 36, , more.
this example of table arrow:
click on left arrow show me data previous week , more..
this code:
cmd.commandtext = " select * week week_no= (select max(week_no) week); cmd.connection = con; sqldatareader rd = cmd.executereader(); table1.append("<table border='0'>"); if (rd.read()) { table1.append("<tr><th>week no</th><th>"+ rd[1] +"</th>"); table1.append("</tr>"); } table1.append("</tr>"); rd.close(); sqldatareader rd2 = cmd.executereader(); if (rd2.hasrows) { while (rd2.read()) { table1.append("<tr>"); table1.append("<td> " + rd2[6] + "</td>"); table1.append("<td> " + rd2[7] + "</td>"); table1.append("</tr>"); } } table1.append("<table");
thx
Comments
Post a Comment