Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

Problem With Data tables API

$
0
0
Hi ,

Does any one have idea on Data tables. I have been using in my project for Pagenation as well as sorting. My problem is that i could not be able to hide the rows of the table.

Here is my code

Code:

<%
                                    sql = " select attend from STD_Student_02 where STUDENT_ID ='Ramesh1987' "
                                cmd1 = New System.Data.SqlClient.SqlCommand(sql, conn)
                                reader1 = cmd1.ExecuteReader()
                                If reader1.HasRows Then
                                    Do While reader1.Read()
                                        v_attend = reader1("attend ")
                                        If v_attend <> "0" Then                               
                          %>
                             
                               
                                      <tr class="table_row" id="toggleMe"  style="visibility:hidden">
                                          <td class="center" class="table_row">
                                                            <a style="text-decoration:none; color:#444444" >
                                                    <div style="float:left" id="lnk1" name="lnk1"><font style="font-weight:bold" color="#ff6600"><b>
                                                        </b></font>&nbsp;<%=v_attend %></div></a>
                                          </td>
                                          <td class="center" class="table_row"><%=reader("Maths")%></td>
                                                  <td class="center" class="table_row"><%=reader("English")%></td>
                                                  <td class="center" class="table_row"><%=reader("Physics")%></td>
                                                  <td class="center" class="table_row"><%=reader("Social")%></td>
                                                  <td class="center" class="table_row"><%=reader("Biology")%></td>
                                                  <td class="center" class="table_row"><%=reader("Tulu")%></td>
                                                  <td class="center" class="table_row"></td>
                                                  <td class="center" class="table_row"></td>
                                                  <td class="center" class="table_row"></td>
                                                  <td class="center" class="table_row"></td>
                                                          </tr>       
                                                     
                                                                                     
          <%
          End If
        Loop
End If
reader1.Close()
cmd1.Dispose()
 Loop
        End If
        reader.Close()
        cmd.Dispose()
        conn.Close()
    Catch ex As Exception
    MsgBox("In catch....Stuents Marks Page......" & ex.Message)
        conn.Close()
    End Try
            %>

Thanks in advance

Viewing all articles
Browse latest Browse all 42220

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>