for some reason when i go to run my web form application in any browser, the table on my page stretches the cells to be the same size when they shouldn't be i was wondering how i could fix this issue
Thanks for providing your sample code. I tried to test it and it seems show the same wide size of the last three columns and they are wider than the first column. So I'm not sure about this sentense.
BradKarran
the table on my page stretches the cells to be the same size when they shouldn't be
Could you please explain more about your requirement?
Ordinarily, I'd like to use DIV + CSS to control the layout and set the wide of each divs instead of table. It's easy to control each cells.
BradKarran
0 Points
51 Posts
run time formatting issue visual studios 2010(C# asp.net)
Jul 10, 2012 02:43 PM|LINK
for some reason when i go to run my web form application in any browser, the table on my page stretches the cells to be the same size when they shouldn't be i was wondering how i could fix this issue
DarthSwian
Star
12771 Points
2361 Posts
Re: run time formatting issue visual studios 2010(C# asp.net)
Jul 10, 2012 02:53 PM|LINK
Post your markup code please
Seek and ye shall find or http://lmgtfy.com/
shaair
Member
401 Points
238 Posts
Re: run time formatting issue visual studios 2010(C# asp.net)
Jul 10, 2012 02:57 PM|LINK
set table width 100%.
BradKarran
0 Points
51 Posts
Re: run time formatting issue visual studios 2010(C# asp.net)
Jul 10, 2012 02:58 PM|LINK
<table id="MathArea" bgcolor="#F0F0F0" style="border: thin solid #000000; width: 543px; margin-left: 23px; font-family: Calibri; font-size: small; height: 468px; overflow: hidden; text-align: right; white-space: pre-wrap; position: inherit;"> <tr> <td bgcolor="#F0F0F0"> <asp:Label ID="PayDateColumnTitle" runat="server" Text="Pay Date"></asp:Label> </td> <td bgcolor="#F0F0F0"> <asp:Label ID="EstimatedGrossBiweeklyPayColumnTitle" runat="server" Text="Estimated Gross Bi-weekly Pay"></asp:Label> </td> <td bgcolor="#F0F0F0"> <asp:Label ID="EstimatedBiweeklyDeductionsColumnTitle" runat="server" Text="Estimated Bi-weekly Deductions" Font-Names="Calibri"></asp:Label> </td> <td bgcolor="#F0F0F0"> <asp:Label ID="EstimatedTotalBiweeklyPayColumnTitle" runat="server" Text="Estimated Total Bi-weekly Pay" Font-Names="Calibri"></asp:Label> *</td> </tr> <tr> <td style="background-color: #FFFFFF"> <asp:Label ID="Sept142012" runat="server" Text="Sep, 14 2012"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow1" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow1" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow1" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td style="background-color: #FFFFFF"> <asp:Label ID="Sep282012" runat="server" Text="Sep 28, 2012"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow2" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow2" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow2" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td style="background-color: #FFFFFF"> <asp:Label ID="Oct122012" runat="server" Text="Oct 12, 2012"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow3" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow3" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow3" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td style="background-color: #FFFFFF"> <asp:Label ID="Oct262012" runat="server" Text="Oct 26, 2012"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow4" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow4" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow4" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td style="background-color: #FFFFFF"> <asp:Label ID="Nov092012" runat="server" Text="Nov 09, 2012"></asp:Label> </td> <td style="background-color: #FFFFFF" class="style20"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow5" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF" class="style20"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow5" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF" class="style20"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow5" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td style="background-color: #FFFFFF"> <asp:Label ID="Nov232012" runat="server" Text="Nov 23, 2012"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow6" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow6" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow6" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td style="background-color: #FFFFFF"> <asp:Label ID="Dec072012" runat="server" Text="Dec 07, 2012"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow7" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow7" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow7" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td class="style21" style="background-color: #FFFFFF"> <asp:Label ID="Dec212012" runat="server" Text="Dec 21, 2012"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow8" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow8" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow8" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td class="style21" style="background-color: #FFFFFF"> <asp:Label ID="Jan042013" runat="server" Text="Jan 04, 2013"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow9" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow9" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow9" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td class="style21" style="background-color: #FFFFFF"> <asp:Label ID="Jan182013" runat="server" Text="Jan 18, 2013"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow10" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow10" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow10" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td class="style21" style="background-color: #FFFFFF"> <asp:Label ID="Feb012013" runat="server" Text="Feb 01, 2013"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow11" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow11" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow11" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td class="style21" style="background-color: #FFFFFF"> <asp:Label ID="Feb152013" runat="server" Text="Feb 15, 2013"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow12" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow12" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow12" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td class="style21" style="background-color: #FFFFFF"> <asp:Label ID="Mar012013" runat="server" Text="Mar 01, 2013"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow13" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow13" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow13" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td class="style21" style="background-color: #FFFFFF"> <asp:Label ID="Mar152013" runat="server" Text="Mar 15, 2013"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow14" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow14" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow14" runat="server">$0.00</asp:Label> </td> </tr> <tr> <td class="style21" style="background-color: #FFFFFF"> <asp:Label ID="Mar292013" runat="server" Text="Mar 29, 2013"></asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedGrossBiWeeklyPayRow15" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedBiWeeklyDeductionsRow15" runat="server">$0.00</asp:Label> </td> <td style="background-color: #FFFFFF"> <asp:Label ID="EstimatedTotalBiWeeklyPayRow15" runat="server">$0.00</asp:Label> </td> </tr> </table>Sage Gu - MS...
Contributor
6693 Points
578 Posts
Microsoft
Re: run time formatting issue visual studios 2010(C# asp.net)
Jul 17, 2012 08:35 AM|LINK
Hi BradKarran,
Thanks for providing your sample code. I tried to test it and it seems show the same wide size of the last three columns and they are wider than the first column. So I'm not sure about this sentense.
Could you please explain more about your requirement?
Ordinarily, I'd like to use DIV + CSS to control the layout and set the wide of each divs instead of table. It's easy to control each cells.
Regards,
Sage Gu - MSFT
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
BradKarran
0 Points
51 Posts
Re: run time formatting issue visual studios 2010(C# asp.net)
Jul 17, 2012 04:32 PM|LINK
when i am in admin mode and run in EI8 it stretches my cells height wise so my page doesn't fit in my pre-set window size,
and when i am in normal mode and run in EI8 it does stretch the cell height wise and fits perfectly
Ruchira
All-Star
42876 Points
7015 Posts
MVP
Re: run time formatting issue visual studios 2010(C# asp.net)
Jul 18, 2012 01:11 PM|LINK
Hello,
May be it runs on compatability mode. Please press F12 and see the Browser Mode each time.
My Tech blog | TwitterPlease 'Mark as Answer' if this post helps you.BradKarran
0 Points
51 Posts
Re: run time formatting issue visual studios 2010(C# asp.net)
Jul 18, 2012 02:43 PM|LINK
when should i press F12 in the project or in the internet window?
Ruchira
All-Star
42876 Points
7015 Posts
MVP
Re: run time formatting issue visual studios 2010(C# asp.net)
Jul 18, 2012 03:07 PM|LINK
internet window.
My Tech blog | TwitterPlease 'Mark as Answer' if this post helps you.