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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -