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. Advertising

  2. On Feb 12, 9:23 am, "Dan" <> wrote:
    > 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>



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

  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


    "Alexey Smirnov" <> wrote in message
    news:...
    > On Feb 12, 9:23 am, "Dan" <> wrote:
    >> 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>

    >
    >
    > <table visible="false" runat="server">
    >
     
    Eliyahu Goldin, Feb 12, 2007
    #3
  4. Dan

    Dan Guest

    Thanks


    "Eliyahu Goldin" <> schreef in
    bericht news:e$...
    > <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
    >
    >
    > "Alexey Smirnov" <> wrote in message
    > news:...
    >> On Feb 12, 9:23 am, "Dan" <> wrote:
    >>> 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>

    >>
    >>
    >> <table visible="false" runat="server">
    >>

    >
    >
     
    Dan, Feb 12, 2007
    #4
  5. Dan

    Japan Shah Guest

    On Feb 12, 1:23 pm, "Dan" <> wrote:
    > 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>


    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.

    "Japan Shah" <> wrote in message
    news:...
    > On Feb 12, 1:23 pm, "Dan" <> wrote:
    >> 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>

    >
    > 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 %>
    >
     
    Kevin Spencer, Feb 12, 2007
    #6
  7. Dan

    Dan Guest

    Thanks both

    "Kevin Spencer" <> schreef in bericht
    news:...
    > 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.
    >
    > "Japan Shah" <> wrote in message
    > news:...
    >> On Feb 12, 1:23 pm, "Dan" <> wrote:
    >>> 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>

    >>
    >> 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 %>
    >>

    >
    >
     
    Dan, Feb 14, 2007
    #7
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. spamfurnace
    Replies:
    1
    Views:
    2,657
    Scott M.
    May 24, 2004
  2. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,123
    Smokey Grindel
    Dec 2, 2006
  3. Dan

    why is this html table still visible?

    Dan, Feb 12, 2007, in forum: ASP .Net Web Controls
    Replies:
    6
    Views:
    171
  4. NeverLift
    Replies:
    4
    Views:
    193
    Gary Marquart
    May 30, 2004
  5. NeverLift
    Replies:
    0
    Views:
    130
    NeverLift
    May 29, 2004
Loading...

Share This Page