hiding <div> from vb.net code side

Posted by reffe on Stack Overflow See other posts from Stack Overflow or by reffe
Published on 2010-04-22T21:49:35Z Indexed on 2010/04/22 21:53 UTC
Read the original article Hit count: 291

Filed under:
|
|
|

i have this code for hiding a table and a cell in aspx, backend vb.net Code -

For Each row As HtmlTableRow In tab_a1.Rows
                    If row.ID = "a1" Then
                        For Each cell As HtmlTableCell In row.Cells
                            cell.Visible = (cell.ID = "a1")
                        Next
                    ElseIf row.ID = "b1" Then
                        For Each cell As HtmlTableCell In row.Cells
                            cell.Visible = (cell.ID = "b1")
                        Next
                    Else
                        row.Visible = False
                    End If
                Next

now instead of tables I'm using tags. How can i use similar code and make div's visible and invisible?

© Stack Overflow or respective owner

Related posts about html

Related posts about div