Printing - Controls overwritten

F

Frank_00001

I've created a User Control to handle various Employee Information. I used
Flow Layout for body DIV element, and have several nested DIV elements which
are GridLayout, to pick and choose what DIV elements are visible. The
control works great in IE for viewing; but theres an issue when attempting to
print a page containing the control. Baiscally if the control is split
between 2 pages, the nested DIV's overwrite each other on the second page.

Any suggestions? I'm pasting the HTML view of the control below...

<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="EmployeeRecordReadOnly.ascx.cs"
Inherits="HR_WebEmployeeRecognition.EmployeeRecordReadOnly"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<asp:label id="lblSectionTitle" Font-Bold="True"
runat="server"></asp:label> <br>
<asp:label id="lblErrorMsg" runat="server" Font-Bold="True"
ForeColor="Red"></asp:label><BR>
<DIV id="EmployeeBodyBlock" style="WIDTH: 100%" runat="server"
ms_positioning="FlowLayout">
<DIV id="EmployeeGeneral" style="WIDTH: 504px; POSITION: relative; HEIGHT:
168px" runat="server"
ms_positioning="GridLayout">
<asp:label id="lblEmployeeName" style="Z-INDEX: 100; LEFT: 8px; POSITION:
absolute; TOP: 16px"
runat="server" Width="56px" Font-Size="XX-Small">Name :</asp:label>
<asp:textbox id="txtEmployeeFirstName" style="Z-INDEX: 101; LEFT: 88px;
POSITION: absolute; TOP: 8px"
tabIndex="11" runat="server" Width="160px" ReadOnly="True"></asp:textbox>
<asp:label id="lblEmployeeFirstName" style="Z-INDEX: 102; LEFT: 88px;
POSITION: absolute; TOP: 32px"
runat="server" Font-Size="XX-Small"> First</asp:label>
<asp:label id="lblEmployeeMiddleName" style="Z-INDEX: 103; LEFT: 264px;
POSITION: absolute; TOP: 32px"
runat="server" Font-Size="XX-Small">Middle</asp:label>
<asp:textbox id="txtEmployeeMiddleName" style="Z-INDEX: 104; LEFT: 264px;
POSITION: absolute; TOP: 8px"
tabIndex="12" runat="server" Width="48px" ReadOnly="True"
MaxLength="1"></asp:textbox>
<asp:label id="lblEmployeeLastName" style="Z-INDEX: 105; LEFT: 336px;
POSITION: absolute; TOP: 32px"
runat="server" Font-Size="XX-Small">Last</asp:label>
<asp:textbox id="txtEmployeeLastName" style="Z-INDEX: 107; LEFT: 336px;
POSITION: absolute; TOP: 8px"
tabIndex="13" runat="server" Width="160px" ReadOnly="True"></asp:textbox>
<asp:label id="lblEmployeePostion" style="Z-INDEX: 110; LEFT: 8px;
POSITION: absolute; TOP: 72px"
runat="server" Width="56px" Font-Size="XX-Small">Position :</asp:label>
<asp:textbox id="txtEmployeePosition" style="Z-INDEX: 116; LEFT: 88px;
POSITION: absolute; TOP: 72px"
tabIndex="15" runat="server" Width="312px" ReadOnly="True"></asp:textbox>
<asp:label id="lblEmployeeEmail" style="Z-INDEX: 117; LEFT: 8px; POSITION:
absolute; TOP: 104px"
runat="server" Width="56px" Font-Size="XX-Small">Email :</asp:label>
<asp:textbox id="txtEmployeeEmail" style="Z-INDEX: 118; LEFT: 88px;
POSITION: absolute; TOP: 104px"
tabIndex="16" runat="server" Width="312px" ReadOnly="True"></asp:textbox>
<asp:label id="lblEmployeePhoneNumber" style="Z-INDEX: 123; LEFT: 8px;
POSITION: absolute; TOP: 136px"
runat="server" Width="56px" Font-Size="XX-Small">Phone :</asp:label>
<asp:textbox id="txtEmployeePhoneNumber" style="Z-INDEX: 124; LEFT: 88px;
POSITION: absolute; TOP: 136px"
tabIndex="16" runat="server" Width="160px"
ReadOnly="True"></asp:textbox></DIV>
<DIV id="EmployeeLocation" style="WIDTH: 504px; POSITION: relative; HEIGHT:
72px" runat="server"
ms_positioning="GridLayout">
<asp:label id="lblEmployeeDistrict" style="Z-INDEX: 101; LEFT: 8px;
POSITION: absolute; TOP: 8px"
runat="server" Width="72px" Height="14px" Font-Size="XX-Small">
District:</asp:label>
<asp:label id="lblEmployeeDivision" style="Z-INDEX: 102; LEFT: 264px;
POSITION: absolute; TOP: 0px"
runat="server" Width="65px" Height="32px" Font-Size="XX-Small">Division\
Section :</asp:label>
<asp:label id="lblEmployeeAHQ" style="Z-INDEX: 103; LEFT: 264px; POSITION:
absolute; TOP: 40px"
runat="server" Width="65px" Font-Size="XX-Small">AHQ :</asp:label>
<asp:label id="lblEmployeeResidency" style="Z-INDEX: 104; LEFT: 8px;
POSITION: absolute; TOP: 40px"
runat="server" Width="56px" Font-Size="XX-Small">Residency :</asp:label>
<asp:TextBox id="txtEmployeeDistrict" style="Z-INDEX: 105; LEFT: 88px;
POSITION: absolute; TOP: 8px"
runat="server" Width="160px" ReadOnly="True"></asp:TextBox>
<asp:TextBox id="txtEmployeeResidency" style="Z-INDEX: 106; LEFT: 88px;
POSITION: absolute; TOP: 40px"
runat="server" Width="160px" ReadOnly="True"></asp:TextBox>
<asp:TextBox id="txtEmployeeDivision" style="Z-INDEX: 107; LEFT: 336px;
POSITION: absolute; TOP: 8px"
runat="server" Width="160px" ReadOnly="True"></asp:TextBox>
<asp:TextBox id="txtEmployeeAHQ" style="Z-INDEX: 108; LEFT: 336px;
POSITION: absolute; TOP: 40px"
runat="server" Width="160px" ReadOnly="True"></asp:TextBox></DIV>
<DIV id="EmployeeNumbers" style="WIDTH: 504px; POSITION: relative; HEIGHT:
80px" runat="server"
ms_positioning="GridLayout">
<asp:label id="lblEmployeeEmployeeNumber" style="Z-INDEX: 100; LEFT: 8px;
POSITION: absolute; TOP: 8px"
runat="server" Width="72px" Font-Size="XX-Small">Employee Number
:</asp:label>
<asp:textbox id="txtEmployeeEmployeeNumber" style="Z-INDEX: 101; LEFT:
88px; POSITION: absolute; TOP: 16px"
tabIndex="17" runat="server" Width="160px" ReadOnly="True">0</asp:textbox>
<asp:textbox id="txtEmployeeFMSIINumber" style="Z-INDEX: 102; LEFT: 336px;
POSITION: absolute; TOP: 16px"
tabIndex="18" runat="server" Width="160px" ReadOnly="True">0</asp:textbox>
<asp:label id="lblEmployeeFMSIINumber" style="Z-INDEX: 103; LEFT: 264px;
POSITION: absolute; TOP: 8px"
runat="server" Width="65px" Height="24px" Font-Size="XX-Small">FMS II
Number :</asp:label>
<asp:checkbox id="chkTeamLead" style="Z-INDEX: 104; LEFT: 88px; POSITION:
absolute; TOP: 48px"
tabIndex="23" runat="server" Text="Team Lead {If applicable to the Group
or Team}" Enabled="False"></asp:checkbox></DIV>
<DIV id="EmployeeApproval" style="WIDTH: 504px; POSITION: relative; HEIGHT:
78px" runat="server"
ms_positioning="GridLayout">
<asp:checkbox id="chkEmployeeApproved" style="Z-INDEX: 101; LEFT: 88px;
POSITION: absolute; TOP: 8px"
tabIndex="62" runat="server" Text="Approved"
Enabled="False"></asp:checkbox>
<asp:checkbox id="chkEmployeeDeclined" style="Z-INDEX: 102; LEFT: 184px;
POSITION: absolute; TOP: 8px"
tabIndex="63" runat="server" Text="Declined"
Enabled="False"></asp:checkbox>
<asp:textbox id="txtEmployeeDesignee" style="Z-INDEX: 103; LEFT: 88px;
POSITION: absolute; TOP: 40px"
runat="server" Width="312px" ReadOnly="True"></asp:textbox>
<asp:textbox id="txtEmployeeDate" style="Z-INDEX: 104; LEFT: 336px;
POSITION: absolute; TOP: 8px"
runat="server" ReadOnly="True"></asp:textbox>
<asp:label id="lblEmployeeDate" style="Z-INDEX: 105; LEFT: 288px;
POSITION: absolute; TOP: 8px"
runat="server" Font-Size="XX-Small">Date :</asp:label>
<asp:label id="lblEmployeeDesignee" style="Z-INDEX: 106; LEFT: 8px;
POSITION: absolute; TOP: 40px"
runat="server" Font-Size="XX-Small">Designee</asp:label></DIV>
</DIV>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top