Saturday, March 31, 2012

why is this html table still visible?

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

%@dotnet.itags.org. 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>On Feb 12, 9:23 am, "Dan" <d...@.d.dwrote:

Quote:

Originally Posted by

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">
<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" <alexey.smirnov@.gmail.comwrote in message
news:1171269028.932577.121790@.a34g2000cwb.googlegr oups.com...

Quote:

Originally Posted by

On Feb 12, 9:23 am, "Dan" <d...@.d.dwrote:

Quote:

Originally Posted by

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


Thanks

"Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN@.mMvVpPsS.orgschreef in
bericht news:e$SNDRoTHHA.4404@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

<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" <alexey.smirnov@.gmail.comwrote in message
news:1171269028.932577.121790@.a34g2000cwb.googlegr oups.com...

Quote:

Originally Posted by

>On Feb 12, 9:23 am, "Dan" <d...@.d.dwrote:

Quote:

Originally Posted by

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


>
>


On Feb 12, 1:23 pm, "Dan" <d...@.d.dwrote:

Quote:

Originally Posted by

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 %>
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" <shahjapan@.gmail.comwrote in message
news:1171289539.265048.270410@.s48g2000cws.googlegr oups.com...

Quote:

Originally Posted by

On Feb 12, 1:23 pm, "Dan" <d...@.d.dwrote:

Quote:

Originally Posted by

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


Thanks both

"Kevin Spencer" <unclechutney@.nothinks.comschreef in bericht
news:OBMNUUuTHHA.5060@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

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" <shahjapan@.gmail.comwrote in message
news:1171289539.265048.270410@.s48g2000cws.googlegr oups.com...

Quote:

Originally Posted by

>On Feb 12, 1:23 pm, "Dan" <d...@.d.dwrote:

Quote:

Originally Posted by

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


>
>

0 comments:

Post a Comment