Hi all,
I've got a big and complex webpage with hundreds of labels populated by a datareader, all held in multiple panels. All the data population works fine but, half way down the page, the formatting goes very strange and it doesn't look anything like it does in design mode. Background colour, label sizes and position all changed. I've had a look at the html and it seems fine (although this is something I'm not an expert at).
I've posted the html code for the part of the page where things go wrong below. Basically there are 2 panels and here's what's wrong
All panels and any labels that have a microsoft label1, label2 etc id should have a default background and any labels that have a meaningful name should have a grey background. When in run mode, everything below and including label 113 (including the panels) has a grey background.
Also below the last label in the first panel, there's a large empty space with a few random dividing lines, which don't make sense at all.
The 2 panels are sub panels in a page panel (does that make any difference).
Has anyone come across something like this before?
Thanks
Julia
I've got a big and complex webpage with hundreds of labels populated by a datareader, all held in multiple panels. All the data population works fine but, half way down the page, the formatting goes very strange and it doesn't look anything like it does in design mode. Background colour, label sizes and position all changed. I've had a look at the html and it seems fine (although this is something I'm not an expert at).
I've posted the html code for the part of the page where things go wrong below. Basically there are 2 panels and here's what's wrong
All panels and any labels that have a microsoft label1, label2 etc id should have a default background and any labels that have a meaningful name should have a grey background. When in run mode, everything below and including label 113 (including the panels) has a grey background.
Also below the last label in the first panel, there's a large empty space with a few random dividing lines, which don't make sense at all.
The 2 panels are sub panels in a page panel (does that make any difference).
Has anyone come across something like this before?
Thanks
Julia
Code:
<asp:Panel id="TextPanel" runat="server" Height="522px" Width="856px">
<asp:label id="Label114" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="30px"
Width="856px" Font-Bold="True" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"
BorderColor="Black">Text</asp:label>
<asp:label id="Label113" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="40px"
Width="96px">Shipping instructions:</asp:label>
<asp:label id="ShippingInstructionsLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana"
Height="48px" Width="704px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label111" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="40px"
Width="96px">Packing instructions:</asp:label>
<asp:label id="PackingInstructionsLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana"
Height="48px" Width="704px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label110" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="40px"
Width="96px">Routing instructions:</asp:label>
<asp:label id="RoutingInstructionsLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana"
Height="48px" Width="704px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label109" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="40px"
Width="96px">Billing instructions:</asp:label>
<asp:label id="BillingInstructionsLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana"
Height="48px" Width="704px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label108" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="40px"
Width="96px">Text for packing list:</asp:label>
<asp:label id="PackingListLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="48px"
Width="704px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label107" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="40px"
Width="96px">Ship marks:</asp:label>
<asp:label id="ShipMarksLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="48px"
Width="704px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label106" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="40px"
Width="96px"> End use (platform):</asp:label>
<asp:label id="EndUsePlatformLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana"
Height="48px" Width="704px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label105" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="40px"
Width="96px">Intermediate consignees:</asp:label>
<asp:label id="IntermediateConsigneesLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana"
Height="48px" Width="704px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label104" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="40px"
Width="96px">General information:</asp:label>
<asp:label id="GeneralInformationLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana"
Height="48px" Width="704px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label103" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="48px"
Width="224px">Instructions to be flowed down by GS order inter-co purchasing:</asp:label>
<asp:label id="InstructionsLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="48px"
Width="600px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
</asp:Panel>
<asp:Panel id="ADataPanel" runat="server" Height="114px" Width="856px">
<asp:label id="Label120" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="30px"
Width="856px" Font-Bold="True" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"
BorderColor="Black">Additional data A</asp:label>
<asp:label id="Label119" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="16px"
Width="120px">Sold to category:</asp:label>
<asp:label id="SoldToCatLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="24px"
Width="240px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label118" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="16px"
Width="160px">Sold to business type:</asp:label>
<asp:label id="SoldToBusinessLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana"
Height="24px" Width="240px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label117" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="16px"
Width="120px">Contract type:</asp:label>
<asp:label id="ContractTypeLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="24px"
Width="240px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label116" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="16px"
Width="160px">Country of end use:</asp:label>
<asp:label id="CountryEndUseLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana"
Height="24px" Width="240px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
<asp:label id="Label115" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="16px"
Width="120px">Pricing type:</asp:label>
<asp:label id="PricingTypeLabel" runat="server" Font-Size="X-Small" Font-Names="Verdana" Height="24px"
Width="240px" BackColor="#D9D5D2" BorderWidth="1px" BorderStyle="Solid"></asp:label>
</asp:Panel>