Welcome Guest Search | Active Topics | Sign In | Register

Grid headers not appearing on one website, but do on another Options
Phil Morris
Posted: Thursday, February 14, 2013 12:42:33 PM
Rank: Advanced Member
Groups: Member

Joined: 6/5/2007
Posts: 35
After developing code etc for our website (Windows 7 OS) , a fresh and clean build is done on a QA machine (Server 2008) and the website on that server undergoes formal testing. One page has a grid, and on both sites everything works fine, except that when displayed from the QA server the headers of the grid are blank. This occurs on both IE and Chrome, so it doesn't appear to be a browser issue. I created a test page with no code behind to demonstrate the problem.
Code: C#
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="PeopleMenders.Test" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"cmt:bd15e72a-fe08-4364-98d7-fa855a165eb0--
<html xmlns="http://www.w3.org/1999/xhtml"cmt:b1d09d9b-9aad-48cc-b6cd-5067ffc96666--
<head runat="server"cmt:fda2bd37-9541-45b2-942a-b62e36b07646--
    <title></title>
</head>
<body>
    <form id="form1" runat="server"cmt:9707f606-516a-4756-98b1-c8ce70482e6f--
    <div>
<eo:Grid ID="grdSearchResults" runat="server" BorderColor="#828790" BorderWidth="1px"
ColumnHeaderAscImage="00050204" ColumnHeaderDescImage="00050205" ColumnHeaderDividerImage="00050203"
[left]ColumnHeaderHeight="40" FixedColumnCount="1" Font-Bold="False" Font-Italic="False"
Font-Names="Tahoma" Font-Overline="False" Font-Size="8.75pt" Font-Strikeout="False"
Font-Underline="False" GridLineColor="240, 240, 240" GridLines="Both" ItemHeight="50"
ClientSideOnItemCommand="ItemCommand" FullRowMode="False" AllowPaging="True" PagerSize="25"
ScrollBars="None" Height="117px" Width="811px" 
>
<ItemStyles>
<eo:GridItemStyleSet>
<ItemStyle CssText="padding: 0px; background-color:#bae7f8; text-align: left;" />
<AlternatingItemStyle CssText="padding: 0px; background-color:#d7f1f8; text-align: left;" />
<CellStyle CssText="text-align: left" />
</eo:GridItemStyleSet>
</ItemStyles>
<ColumnHeaderStyle CssText="background-image:url('~/images/grid_bar.gif');padding-left:2px;padding-top:2px;font-weight: bold;color:white; text-align:left;" />
<Columns>
<eo:StaticColumn DataField="PostingId" DataType="Integer" 
HeaderText="PostringId" Name="PostingId" Visible="False" Width="1" MaxWidth="0"cmt:1315d81d-b24c-462f-ba38-55e091a8501d--
</eo:StaticColumn>
<eo:ButtonColumn DataField="PostingTitle" DataType="String" 
HeaderText="Job Title" Width="175" CommandName="ShowPosting" AllowSort="True" 
ReadOnly="True"cmt:4e7156ca-c0b4-4436-9b82-d86c78f8a928--
</eo:ButtonColumn>
<eo:StaticColumn HeaderText="Company" DataField="Company"
DataType="String" AllowSort="True" ReadOnly="True" Width="105"cmt:02e74953-e8eb-4737-9dd1-583852b7b6f5--
</eo:StaticColumn>
<eo:StaticColumn DataField="Facility" DataType="String" HeaderText="Facility" 
Width="105"cmt:27dada10-a8f7-4480-86fd-9284a77d044a--
</eo:StaticColumn>
<eo:StaticColumn HeaderText="City" AllowSort="True" 
DataField="City" DataType="String"
Width="85" ReadOnly="True"cmt:63347b5d-42ad-4c20-9e24-2bbf8d969061--
</eo:StaticColumn>
<eo:StaticColumn DataField="State" DataType="String" 
HeaderText="State/&lt;br/&gt;Province" Width="70"
AllowSort="True" ReadOnly="True"cmt:931509e4-cbc4-4c90-adfe-71b0fa2f74bb--
</eo:StaticColumn>
<eo:StaticColumn DataField="Country" DataType="String" HeaderText="Country"
Width="60" AllowSort="True" ReadOnly="True"cmt:5dc02a3d-ce52-4791-8bbd-c503f945d2be--
</eo:StaticColumn>
<eo:StaticColumn DataField="Status" DataType="String" 
	HeaderText="Status" Width="60"
	AllowSort="True" ReadOnly="True"cmt:7ff27c91-6f70-4416-96cb-33f6ed4a081e--
</eo:StaticColumn>
<eo:StaticColumn DataField="PositionType" DataType="String" 
	HeaderText="Position&lt;br/&gt;Type" AllowSort="True"
	Width="80" ReadOnly="True"cmt:25dc8f4f-da53-471f-b472-dca56466ea42--
</eo:StaticColumn>
<eo:StaticColumn AllowSort="True" DataField="CloseDate" DataType="String" 
	HeaderText="Close&lt;br/&gt;Date" ReadOnly="True" Width="60"cmt:f6566a93-a890-495f-a9aa-fb7824a5a923--
</eo:StaticColumn>
</Columns>
<ColumnTemplates>
	<eo:TextBoxColumn>
		<TextBoxStyle CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 8.75pt; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; FONT-FAMILY: Tahoma" />
	</eo:TextBoxColumn>
	<eo:DateTimeColumn>
		<DatePicker ControlSkinID="None" DayCellHeight="16" DayCellWidth="19" DayHeaderFormat="FirstLetter"
			DisabledDates="" OtherMonthDayVisible="True" SelectedDates="" TitleLeftArrowImageUrl="DefaultSubMenuIconRTL"
			TitleRightArrowImageUrl="DefaultSubMenuIcon"cmt:c7650f37-a1d5-459e-a69a-9d3a9bc397c7--
			<PickerStyle CssText="border-bottom-color:#7f9db9;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#7f9db9;border-left-style:solid;border-left-width:1px;border-right-color:#7f9db9;border-right-style:solid;border-right-width:1px;border-top-color:#7f9db9;border-top-style:solid;border-top-width:1px;font-family:Courier New;font-size:8pt;margin-bottom:0px;margin-left:0px;margin-right:0px;margin-top:0px;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" />
			<CalendarStyle CssText="background-color: white; border-right: #7f9db9 1px solid; padding-right: 4px; border-top: #7f9db9 1px solid; padding-left: 4px; font-size: 9px; padding-bottom: 4px; border-left: #7f9db9 1px solid; padding-top: 4px; border-bottom: #7f9db9 1px solid; font-family: tahoma" />
			<TitleStyle CssText="background-color:#9ebef5;font-family:Tahoma;font-size:12px;padding-bottom:2px;padding-left:6px;padding-right:6px;padding-top:2px;" />
			<TitleArrowStyle CssText="cursor:hand" />
			<MonthStyle CssText="font-family: tahoma; font-size: 12px; margin-left: 14px; cursor: hand; margin-right: 14px" />
			<DayHeaderStyle CssText="font-family: tahoma; font-size: 12px; border-bottom: #aca899 1px solid" />
			<DayStyle CssText="font-family: tahoma; font-size: 12px; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
			<DayHoverStyle CssText="font-family: tahoma; font-size: 12px; border-right: #fbe694 1px solid; border-top: #fbe694 1px solid; border-left: #fbe694 1px solid; border-bottom: #fbe694 1px solid" />
			<TodayStyle CssText="font-family: tahoma; font-size: 12px; border-right: #bb5503 1px solid; border-top: #bb5503 1px solid; border-left: #bb5503 1px solid; border-bottom: #bb5503 1px solid" />
			<SelectedDayStyle CssText="font-family: tahoma; font-size: 12px; background-color: #fbe694; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
			<DisabledDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
			<OtherMonthDayStyle CssText="font-family: tahoma; font-size: 12px; color: gray; border-right: white 1px solid; border-top: white 1px solid; border-left: white 1px solid; border-bottom: white 1px solid" />
		</DatePicker>
	</eo:DateTimeColumn>
	<eo:MaskedEditColumn>
		<MaskedEdit ControlSkinID="None" TextBoxStyle-CssText="BORDER-RIGHT: #7f9db9 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7f9db9 1px solid; PADDING-LEFT: 2px; PADDING-BOTTOM: 1px; MARGIN: 0px; BORDER-LEFT: #7f9db9 1px solid; PADDING-TOP: 2px; BORDER-BOTTOM: #7f9db9 1px solid; font-family:Courier New;font-size:8pt;"cmt:a51b0d62-63b5-4bff-88ee-5d31362397c1--
		</MaskedEdit>
	</eo:MaskedEditColumn>
</ColumnTemplates>
<FooterStyle CssText="padding-bottom:4px;padding-left:4px;padding-right:4px;padding-top:4px;" />
</eo:Grid>
</div>
</form>
</body>
</html>
[/left]


I viewed the source code in each case (QA web server vs. local web server) and the only differences - other than resource references appear to be in the 'eo_culture' settings; the local machine specifies en-CA whereas the QA server specifies 'en-US'. This despite ensuring both the QA server and my machine have the same location (USA) and formats (English(USA). But I find it hard to believe that culture settings would cause this.

I can also send the source files in each case if this would help.
Phil Morris
Posted: Thursday, February 14, 2013 12:49:28 PM
Rank: Advanced Member
Groups: Member

Joined: 6/5/2007
Posts: 35
Duh!! If you've read the prior post, sorry to have wasted your time. Source Control only works when all needed files are checked in - applications will compile even if image files are missing!! I hadn't checked in 'grid_bar.gif'!! Having done so the header show up fine


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.