Home All Groups Group Topic Archive Search About
Author
8 Jun 2005 10:01 PM
Ashish
Hello All,
I recently migrated to ASP.NET 2.0. I also migrated a toolbar control that I
had made in ASP.NET 1.1. The toolbar table sets a height of 100% so the
toolbar spans the whole page height incase of less buttons in a band.
However I notice in ASP.NET 2.0 setting height to 100% has no effect. Can
someone reason this out, as I scratch my head while doing the same :-)
Thanks,
Ashish

Author
9 Jun 2005 3:11 AM
Ashish
For example the following page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs"
Inherits="Test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <table style="height:100%;width:100%">
    <tr>
        <td bgcolor="red">
            <p>Hello</p>
        </td>
    </tr>
    </table>
    </form>
</body>
</html>

Displays the table in full 100% spanning width but not the height...
Ashish

Show quoteHide quote
"Ashish" <nospam@microsoft.com> wrote in message
news:OlApRWHbFHA.3864@TK2MSFTNGP10.phx.gbl...
> Hello All,
> I recently migrated to ASP.NET 2.0. I also migrated a toolbar control that
> I had made in ASP.NET 1.1. The toolbar table sets a height of 100% so the
> toolbar spans the whole page height incase of less buttons in a band.
> However I notice in ASP.NET 2.0 setting height to 100% has no effect. Can
> someone reason this out, as I scratch my head while doing the same :-)
> Thanks,
> Ashish
>
Author
9 Jun 2005 4:16 PM
lisa
Try doing <table height=100% instead of <table style=height:100%

You should probably do that for width as well.

Lisa


Ashish wrote:
Show quoteHide quote
> For example the following page:
> <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs"
> Inherits="Test" %>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
>
> <html xmlns="http://www.w3.org/1999/xhtml" >
> <head runat="server">
>     <title>Untitled Page</title>
> </head>
> <body>
>     <form id="form1" runat="server">
>     <table style="height:100%;width:100%">
>     <tr>
>         <td bgcolor="red">
>             <p>Hello</p>
>         </td>
>     </tr>
>     </table>
>     </form>
> </body>
> </html>
>
> Displays the table in full 100% spanning width but not the height...
> Ashish
>
> "Ashish" <nospam@microsoft.com> wrote in message
> news:OlApRWHbFHA.3864@TK2MSFTNGP10.phx.gbl...
> > Hello All,
> > I recently migrated to ASP.NET 2.0. I also migrated a toolbar control that
> > I had made in ASP.NET 1.1. The toolbar table sets a height of 100% so the
> > toolbar spans the whole page height incase of less buttons in a band.
> > However I notice in ASP.NET 2.0 setting height to 100% has no effect. Can
> > someone reason this out, as I scratch my head while doing the same :-)
> > Thanks,
> > Ashish
> >
Author
9 Jun 2005 6:25 PM
Ashish
Hi Lisa,
I have tried it and it doesnt work.
Thanks tho.
Ashish

<l***@starways.net> wrote in message
Show quoteHide quote
news:1118333770.273072.306730@g49g2000cwa.googlegroups.com...
> Try doing <table height=100% instead of <table style=height:100%
>
> You should probably do that for width as well.
>
> Lisa
>
>
> Ashish wrote:
>> For example the following page:
>> <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs"
>> Inherits="Test" %>
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
>> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
>>
>> <html xmlns="http://www.w3.org/1999/xhtml" >
>> <head runat="server">
>>     <title>Untitled Page</title>
>> </head>
>> <body>
>>     <form id="form1" runat="server">
>>     <table style="height:100%;width:100%">
>>     <tr>
>>         <td bgcolor="red">
>>             <p>Hello</p>
>>         </td>
>>     </tr>
>>     </table>
>>     </form>
>> </body>
>> </html>
>>
>> Displays the table in full 100% spanning width but not the height...
>> Ashish
>>
>> "Ashish" <nospam@microsoft.com> wrote in message
>> news:OlApRWHbFHA.3864@TK2MSFTNGP10.phx.gbl...
>> > Hello All,
>> > I recently migrated to ASP.NET 2.0. I also migrated a toolbar control
>> > that
>> > I had made in ASP.NET 1.1. The toolbar table sets a height of 100% so
>> > the
>> > toolbar spans the whole page height incase of less buttons in a band.
>> > However I notice in ASP.NET 2.0 setting height to 100% has no effect.
>> > Can
>> > someone reason this out, as I scratch my head while doing the same :-)
>> > Thanks,
>> > Ashish
>> >
>
Author
17 Jun 2005 3:39 AM
mrsmitty
Same problem, any luck? Maybe we can use JavaScript to keep the table
at full height. I'm also trying to place other controls, mainly DIV
tags to see if they well expand 100% height.

Ashish wrote:
Show quoteHide quote
> Hello All,
> I recently migrated to ASP.NET 2.0. I also migrated a toolbar control that I
> had made in ASP.NET 1.1. The toolbar table sets a height of 100% so the
> toolbar spans the whole page height incase of less buttons in a band.
> However I notice in ASP.NET 2.0 setting height to 100% has no effect. Can
> someone reason this out, as I scratch my head while doing the same :-)
> Thanks,
> Ashish
Author
17 Jun 2005 4:04 AM
mrsmitty
I took the generated HTML and started stripping stuff from it until the
table expanded the page. The line below is causing the problem. I'm not
sure what the purpose of it is but it seems to have something to do
with conformance levels. Let me know if you have an explanation for
this. Thanks.

Mike

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">