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:5cba128a-a8e7-413b-b02e-acca971db1bb--
<html xmlns="http://www.w3.org/1999/xhtml"cmt:5043643f-ac51-4e8e-a1d4-c611d97e0bf1--
<head runat="server"cmt:119c5945-f2b7-43c8-94c6-ad6b3afae2ad--
    <title></title>
</head>
<body>
    <form id="form1" runat="server"cmt:90dfd103-0a10-4d0c-9216-e14fbd6e2801--
    <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:e1971c66-6fdb-4187-be75-7460bd7919f4--
</eo:StaticColumn>
<eo:ButtonColumn DataField="PostingTitle" DataType="String" 
HeaderText="Job Title" Width="175" CommandName="ShowPosting" AllowSort="True" 
ReadOnly="True"cmt:57fd0000-8a47-4ef6-8763-1b2e32b47953--
</eo:ButtonColumn>
<eo:StaticColumn HeaderText="Company" DataField="Company"
DataType="String" AllowSort="True" ReadOnly="True" Width="105"cmt:4e12925d-60f9-4a89-ab62-1ebfb8b35269--
</eo:StaticColumn>
<eo:StaticColumn DataField="Facility" DataType="String" HeaderText="Facility" 
Width="105"cmt:591baf85-3ef6-4a26-b767-7e308f6c2108--
</eo:StaticColumn>
<eo:StaticColumn HeaderText="City" AllowSort="True" 
DataField="City" DataType="String"
Width="85" ReadOnly="True"cmt:8d1f6a2b-55d7-46c1-96f3-34fe3be77b3d--
</eo:StaticColumn>
<eo:StaticColumn DataField="State" DataType="String" 
HeaderText="State/&lt;br/&gt;Province" Width="70"
AllowSort="True" ReadOnly="True"cmt:f95b88c9-9005-4818-9331-cd9edf79e3d1--
</eo:StaticColumn>
<eo:StaticColumn DataField="Country" DataType="String" HeaderText="Country"
Width="60" AllowSort="True" ReadOnly="True"cmt:b69ba09b-6170-4929-b886-5cae19e9099e--
</eo:StaticColumn>
<eo:StaticColumn DataField="Status" DataType="String" 
	HeaderText="Status" Width="60"
	AllowSort="True" ReadOnly="True"cmt:eda8628a-fcc7-4955-9bf7-d9f0450d4167--
</eo:StaticColumn>
<eo:StaticColumn DataField="PositionType" DataType="String" 
	HeaderText="Position&lt;br/&gt;Type" AllowSort="True"
	Width="80" ReadOnly="True"cmt:76c1a63a-49c5-4dc4-9fc1-3c5bc5a46c73--
</eo:StaticColumn>
<eo:StaticColumn AllowSort="True" DataField="CloseDate" DataType="String" 
	HeaderText="Close&lt;br/&gt;Date" ReadOnly="True" Width="60"cmt:a1d352da-9706-488c-b20a-08e09141080d--
</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:251c0f8a-655f-4db9-914c-60a41bc00ee5--
			<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:a879eff5-cfec-43ca-be65-180051b042e2--
		</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.