why is this html table still visible?

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

  1. Dan

    Dan Guest


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

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

  2. <table visible="false" runat="server">
    Alexey Smirnov, Feb 12, 2007
    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

    Eliyahu Goldin,
    Software Developer & Consultant
    Microsoft MVP [ASP.NET]
    Eliyahu Goldin, Feb 12, 2007
  4. Dan

    Dan Guest


    Dan, Feb 12, 2007
  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

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


    Kevin Spencer
    Microsoft MVP
    Software Composer

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

    Dan Guest

    Thanks both

    Dan, Feb 14, 2007
    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.