why is this html table still visible?

Discussion in 'ASP .Net' started by Dan, Feb 12, 2007.

  1. Dan

    Dan Guest

    Hi,

    i defined a html table with Visible="false", but i still see it in the
    browser.
    Why and how to hide that table?
    Thanks
    Dan

    %@ Page Language="VB" AutoEventWireup="false" CodeFile="Default3.aspx.vb"
    Inherits="Default3" %>
    <head runat="server"> <title>Untitled Page</title> </head>
    <body>
    <form id="form1" runat="server">
    <table visible="false">
    <tr> <td>
    must be hidden!
    </td></tr>
    </table>
    </form>
    </body>
    </html>
     
    Dan, Feb 12, 2007
    #1
    1. Advertisements


  2. <table visible="false" runat="server">
     
    Alexey Smirnov, Feb 12, 2007
    #2
    1. Advertisements

  3. <table visible="false" runat="server"> will result in the table not to be
    sent to the client. If it is not the desired effect, use css rule
    display:none.

    --
    Eliyahu Goldin,
    Software Developer & Consultant
    Microsoft MVP [ASP.NET]
    http://msmvps.com/blogs/egoldin
    http://usableasp.net
     
    Eliyahu Goldin, Feb 12, 2007
    #3
  4. Dan

    Dan Guest

    Thanks


     
    Dan, Feb 12, 2007
    #4
  5. Dan

    Japan Shah Guest

    Hi Dan,
    what you can do to hide the table under ASP.NET
    go to the HTML view of it and write the following code below your
    table

    <% IF condtion Then %>
    <table visible="false">
    <tr> <td>
    must be hidden!
    </td></tr>
    </table>
    <% END IF %>
     
    Japan Shah, Feb 12, 2007
    #5
  6. The table is not an ASP.Net Control. It has no runat="server" attribute.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    Software Composer
    http://unclechutney.blogspot.com

    The shortest distance between 2 points is a curve.
     
    Kevin Spencer, Feb 12, 2007
    #6
  7. Dan

    Dan Guest

    Thanks both

     
    Dan, Feb 14, 2007
    #7
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.