Solved

Dynamic CSS Page Break

Posted on 2008-10-15
15
397 Views
Last Modified: 2008-10-16
I've tried to look this question up, but I did not come across a clear solution.  

I am trying to force page breaks on a page that uses a gridview to dynamically display data.

If I have my page's size set to:

8.5in 11in portrait; margin: 1cm

and if I have all gridviews set to:

page-break-after:auto;
page-break-before:auto;

Why does my page still break in the middle of a gridview?  What else do I have to do?

Please let me know if I need to post any additional information. Thanks for reading.
<style type="text/css">
        .container
        {
            size: 8.5in 11in portrait;
            margin: 1cm;
        }
        h2
        {
            font-size: 14px;
            text-decoration: underline;
        }
        .grid
        {
            page-break-after: auto;
            page-break-before: auto;
        }
    </style>

Open in new window

0
Comment
Question by:thedeal56
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 6
15 Comments
 
LVL 18

Expert Comment

by:David Robitaille
ID: 22723019
add

page-break-inside: avoid;
0
 

Author Comment

by:thedeal56
ID: 22723579
Still no luck.  I have to be missing something.  Do you know of a page that uses an example of what I'm trying to do?  Maybe if I looked at their css I could figure it out.  Thanks for the reply.
0
 

Author Comment

by:thedeal56
ID: 22723632
Here's my entire page; I thought it might help.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<script runat="server">
 
 
 
    Protected Sub DataList2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
   
    Protected Sub GridView5_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView5.RowDataBound
        If e.Row.RowType = DataControlRowType.DataRow Then
            If e.Row.Cells(4).Text = "$1.00" Then
                e.Row.Cells(4).BackColor = Drawing.Color.Crimson
                e.Row.Cells(4).Text = "Clerk and Master"
            End If
        End If
    End Sub
 
    Protected Sub GridView2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
</script>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Print Records</title>
    <style type="text/css">
        .container
        {
            size: 8.5in 11in portrait;
            margin: 1cm;
        }
        h2
        {
            font-size: 14px;
            text-decoration: underline;
        }
        .grid
        {
            page-break-after: auto;
            page-break-before: auto;
            page-break-inside: avoid;
        }
    </style>
</head>
<div class="container">
    <body style="text-align: left">
        <form id="form1" runat="server" enableviewstate="True" method="post">
        <div style="width: 100%">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:proptaxConnectionString %>"
                SelectCommand="sp_TAXTop" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter ConvertEmptyStringToNull="False" Name="special" QueryStringField="special"
                        Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ProptaxConnectionString %>"
                SelectCommand="sp_TAXBottom" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String" />
                    <asp:QueryStringParameter Name="special" QueryStringField="special" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ProptaxConnectionString %>"
                SelectCommand="sp_Clerk" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String" />
                    <asp:QueryStringParameter Name="special" QueryStringField="special" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <h1>
                Property Tax Information</h1>
            <br />
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CssClass="grid"
                DataSourceID="SqlDataSource1" EnableViewState="False" DataKeyNames="special">
                <RowStyle VerticalAlign="Top" Font-Names="Verdana" />
                <Columns>
                    <asp:BoundField DataField="PIN" HeaderText="Parcel ID" SortExpression="PIN" ConvertEmptyStringToNull="False">
                        <ItemStyle BorderWidth="0px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="property_add" HeaderText="Address" SortExpression="property_add"
                        ConvertEmptyStringToNull="False">
                        <ItemStyle BorderWidth="0px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="subdivision" HeaderText="Subdivision" SortExpression="subdivision"
                        ConvertEmptyStringToNull="False" />
                </Columns>
            </asp:GridView>
            <br />
            <font face="Verdana, Arial, Helvetica, sans-serif">
                <h2>
                    Property Description:</h2>
            </font>
            <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" CssClass="grid"
                DataSourceID="SqlDataSource1" EnableViewState="False">
                <RowStyle Font-Names="Verdana" />
                <Columns>
                    <asp:BoundField DataField="add_description1" HeaderText="Description" SortExpression="add_description1" />
                    <asp:BoundField DataField="Deed" HeaderText="Deed" SortExpression="Deed" />
                    <asp:BoundField DataField="Plat" HeaderText="Plat" SortExpression="Plat" />
                    <asp:BoundField DataField="Acre" HeaderText="Acre" SortExpression="Acre" />
                </Columns>
            </asp:GridView>
            <br />
            <font face="Verdana, Arial, Helvetica, sans-serif">
                <h2>
                    Owner:
                </h2>
            </font>
        </div>
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            CssClass="grid" DataSourceID="SqlDataSource2" PageSize="20" EnableSortingAndPagingCallbacks="True"
            EnableViewState="False">
            <HeaderStyle ForeColor="Black" />
            <RowStyle Font-Names="Verdana" />
            <Columns>
                <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
                <asp:BoundField DataField="name1" HeaderText="Owner Name" SortExpression="name1">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
                <asp:BoundField DataField="add1" HeaderText="Mailing Address" SortExpression="add1"
                    HtmlEncode="False" HtmlEncodeFormatString="False">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
        <br />
        <font face="Verdana, Arial, Helvetica, sans-serif">
            <h2>
                Totals Due and Amounts Paid:</h2>
        </font>
        <asp:GridView ID="GridView5" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            CssClass="grid" DataSourceID="SqlDataSource2" DataMember="DefaultView" PageSize="50"
            OnRowDataBound="GridView5_RowDataBound" EnableSortingAndPagingCallbacks="True"
            EnableViewState="False">
            <HeaderStyle ForeColor="Black" />
            <RowStyle BorderColor="White" Font-Names="Verdana" />
            <Columns>
                <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                <asp:BoundField DataField="bill_no" HeaderText="Bill #" SortExpression="bill_no" />
                <asp:BoundField ApplyFormatInEditMode="True" DataField="duetax" DataFormatString="{0:c2}"
                    HeaderText="Tax" HtmlEncode="False" SortExpression="duetax" />
                <asp:BoundField DataField="duepenalty" HeaderText="Penalty/Interest" HtmlEncode="False"
                    SortExpression="duepenalty" DataFormatString="{0:c}">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="cm" HeaderText="Total Due" SortExpression="cm" DataFormatString="{0:c}">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="trans_amt" DataFormatString="{0:c}" HeaderText="Total Paid"
                    HtmlEncode="False" SortExpression="trans_amt">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="trans_yy" HeaderText="Paid Date" SortExpression="trans_yy">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
        <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource3" ShowFooter="False"
            ShowHeader="False" EnableViewState="False">
            <ItemStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                Font-Underline="False" ForeColor="Maroon" Font-Names="Verdana" />
            <ItemTemplate>
                <asp:Label ID="ctlmapLabel" runat="server" Text='<%# Eval("ClerkMaster") %>' />
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("notes") %>'></asp:Label>
            </ItemTemplate>
        </asp:DataList>
        <br />
        <font face="Verdana, Arial, Helvetica, sans-serif">
            <h2>
                Appraised Value:
            </h2>
        </font>
        <asp:GridView ID="GridView6" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            CssClass="grid" DataSourceID="SqlDataSource2" EnableSortingAndPagingCallbacks="True"
            EnableViewState="False" PageSize="50">
            <HeaderStyle ForeColor="Black" />
            <RowStyle Font-Names="Verdana" />
            <Columns>
                <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                <asp:BoundField DataField="landvalue" DataFormatString="{0:c}" HeaderText="Land Value"
                    SortExpression="landvalue" />
                <asp:BoundField DataField="improvevalue" DataFormatString="{0:c}" HeaderText="Improvements"
                    SortExpression="improvevalue" />
                <asp:BoundField DataField="perpropvalue" DataFormatString="{0:c}" HeaderText="Pers. Prop."
                    SortExpression="perpropvalue"></asp:BoundField>
                <asp:BoundField DataField="totalvalue" DataFormatString="{0:c}" HeaderText="Total"
                    SortExpression="totalvalue" />
                <asp:BoundField DataField="exemption" DataFormatString="{0:c}" HeaderText="Exempt."
                    SortExpression="exemption"></asp:BoundField>
                <asp:BoundField DataField="equalfactor" DataFormatString="{0:f}%" HeaderText="Equaliz."
                    SortExpression="equalfactor" />
                <asp:BoundField DataField="netvalue" DataFormatString="{0:c}" HeaderText="Net" SortExpression="netvalue" />
            </Columns>
        </asp:GridView>
        <br />
        <font face="Verdana, Arial, Helvetica, sans-serif">
            <h2>
                Assessed Value:
            </h2>
        </font>
        <asp:GridView ID="GridView7" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            CssClass="grid" DataSourceID="SqlDataSource2" EnableSortingAndPagingCallbacks="True"
            EnableViewState="False">
            <HeaderStyle ForeColor="Black" />
            <RowStyle Font-Names="Verdana" />
            <Columns>
                <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                <asp:BoundField DataField="assessedpct" DataFormatString="{0:f}%" HeaderText="Assessed %"
                    SortExpression="assessedpct" />
                <asp:BoundField DataField="assessedvalue" DataFormatString="{0:c}" HeaderText="Assessed Value"
                    SortExpression="assessedvalue"></asp:BoundField>
                <asp:BoundField DataField="taxrate" DataFormatString="{0:f}%" HeaderText="Rate" SortExpression="taxrate" />
                <asp:BoundField DataField="nettax" DataFormatString="{0:c}" HeaderText="Tax Amount"
                    SortExpression="nettax">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="othertax" DataFormatString="{0:c}" HeaderText="Other"
                    SortExpression="othertax" />
                <asp:BoundField DataField="totaltax" DataFormatString="{0:c}" HeaderText="Total"
                    SortExpression="totaltax" />
            </Columns>
        </asp:GridView>
        </form>
    </body>
</div>
</html>

Open in new window

0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 18

Expert Comment

by:David Robitaille
ID: 22723658
i put the page-break-inside: avoid; in the TR part of my table.
what if you set it this way (dont forget the page-break-inside: avoid)
<RowStyle CssClass="grid" />
0
 

Author Comment

by:thedeal56
ID: 22723763
I'll attach the code change.  I'm still not having any luck, but it really seems like it should work haha.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<script runat="server">
 
 
 
    Protected Sub DataList2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
   
    Protected Sub GridView5_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView5.RowDataBound
        If e.Row.RowType = DataControlRowType.DataRow Then
            If e.Row.Cells(4).Text = "$1.00" Then
                e.Row.Cells(4).BackColor = Drawing.Color.Crimson
                e.Row.Cells(4).Text = "Clerk and Master"
            End If
        End If
    End Sub
 
    Protected Sub GridView2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
</script>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Print Records</title>
    <style type="text/css">
        .container
        {
            size: 8.5in 11in portrait;
            margin: 1cm;
        }
        h2
        {
            font-size: 14px;
            text-decoration: underline;
        }
        .grid
        {
            page-break-after: auto;
            page-break-before: auto;
            page-break-inside: avoid;
        }
    </style>
</head>
<div class="container">
    <body style="text-align: left">
        <form id="form1" runat="server" enableviewstate="True" method="post">
        <div style="width: 100%">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:proptaxConnectionString %>"
                SelectCommand="sp_TAXTop" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter ConvertEmptyStringToNull="False" Name="special" QueryStringField="special"
                        Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ProptaxConnectionString %>"
                SelectCommand="sp_TAXBottom" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String" />
                    <asp:QueryStringParameter Name="special" QueryStringField="special" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ProptaxConnectionString %>"
                SelectCommand="sp_Clerk" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String" />
                    <asp:QueryStringParameter Name="special" QueryStringField="special" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <h1>
                Property Tax Information</h1>
            <br />
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CssClass="grid"
                DataSourceID="SqlDataSource1" EnableViewState="False" DataKeyNames="special">
                <RowStyle CssClass=grid  VerticalAlign="Top" Font-Names="Verdana" />
                <Columns>
                    <asp:BoundField DataField="PIN" HeaderText="Parcel ID" SortExpression="PIN" ConvertEmptyStringToNull="False">
                        <ItemStyle BorderWidth="0px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="property_add" HeaderText="Address" SortExpression="property_add"
                        ConvertEmptyStringToNull="False">
                        <ItemStyle BorderWidth="0px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="subdivision" HeaderText="Subdivision" SortExpression="subdivision"
                        ConvertEmptyStringToNull="False" />
                </Columns>
            </asp:GridView>
            <br />
            <font face="Verdana, Arial, Helvetica, sans-serif">
                <h2>
                    Property Description:</h2>
            </font>
            <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" CssClass="grid"
                DataSourceID="SqlDataSource1" EnableViewState="False">
                <RowStyle CssClass=grid  Font-Names="Verdana" />
                <Columns>
                    <asp:BoundField DataField="add_description1" HeaderText="Description" SortExpression="add_description1" />
                    <asp:BoundField DataField="Deed" HeaderText="Deed" SortExpression="Deed" />
                    <asp:BoundField DataField="Plat" HeaderText="Plat" SortExpression="Plat" />
                    <asp:BoundField DataField="Acre" HeaderText="Acre" SortExpression="Acre" />
                </Columns>
            </asp:GridView>
            <br />
            <font face="Verdana, Arial, Helvetica, sans-serif">
                <h2>
                    Owner:
                </h2>
            </font>
        </div>
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            CssClass="grid" DataSourceID="SqlDataSource2" PageSize="20" EnableSortingAndPagingCallbacks="True"
            EnableViewState="False">
            <HeaderStyle ForeColor="Black" />
            <RowStyle CssClass=grid  Font-Names="Verdana" />
            <Columns>
                <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
                <asp:BoundField DataField="name1" HeaderText="Owner Name" SortExpression="name1">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
                <asp:BoundField DataField="add1" HeaderText="Mailing Address" SortExpression="add1"
                    HtmlEncode="False" HtmlEncodeFormatString="False">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
        <br />
        <font face="Verdana, Arial, Helvetica, sans-serif">
            <h2>
                Totals Due and Amounts Paid:</h2>
        </font>
        <asp:GridView ID="GridView5" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            CssClass="grid" DataSourceID="SqlDataSource2" DataMember="DefaultView" PageSize="50"
            OnRowDataBound="GridView5_RowDataBound" EnableSortingAndPagingCallbacks="True"
            EnableViewState="False">
            <HeaderStyle ForeColor="Black" />
            <RowStyle CssClass=grid  BorderColor="White" Font-Names="Verdana" />
            <Columns>
                <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                <asp:BoundField DataField="bill_no" HeaderText="Bill #" SortExpression="bill_no" />
                <asp:BoundField ApplyFormatInEditMode="True" DataField="duetax" DataFormatString="{0:c2}"
                    HeaderText="Tax" HtmlEncode="False" SortExpression="duetax" />
                <asp:BoundField DataField="duepenalty" HeaderText="Penalty/Interest" HtmlEncode="False"
                    SortExpression="duepenalty" DataFormatString="{0:c}">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="cm" HeaderText="Total Due" SortExpression="cm" DataFormatString="{0:c}">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="trans_amt" DataFormatString="{0:c}" HeaderText="Total Paid"
                    HtmlEncode="False" SortExpression="trans_amt">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="trans_yy" HeaderText="Paid Date" SortExpression="trans_yy">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
        <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource3" ShowFooter="False"
            ShowHeader="False" EnableViewState="False">
            <ItemStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                Font-Underline="False" ForeColor="Maroon" Font-Names="Verdana" />
            <ItemTemplate>
                <asp:Label ID="ctlmapLabel" runat="server" Text='<%# Eval("ClerkMaster") %>' />
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("notes") %>'></asp:Label>
            </ItemTemplate>
        </asp:DataList>
        <br />
        <font face="Verdana, Arial, Helvetica, sans-serif">
            <h2>
                Appraised Value:
            </h2>
        </font>
        <asp:GridView ID="GridView6" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            CssClass="grid" DataSourceID="SqlDataSource2" EnableSortingAndPagingCallbacks="True"
            EnableViewState="False" PageSize="50">
            <HeaderStyle ForeColor="Black" />
            <RowStyle  Font-Names="Verdana" CssClass=grid  />
            <Columns>
                <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                <asp:BoundField DataField="landvalue" DataFormatString="{0:c}" HeaderText="Land Value"
                    SortExpression="landvalue" />
                <asp:BoundField DataField="improvevalue" DataFormatString="{0:c}" HeaderText="Improvements"
                    SortExpression="improvevalue" />
                <asp:BoundField DataField="perpropvalue" DataFormatString="{0:c}" HeaderText="Pers. Prop."
                    SortExpression="perpropvalue"></asp:BoundField>
                <asp:BoundField DataField="totalvalue" DataFormatString="{0:c}" HeaderText="Total"
                    SortExpression="totalvalue" />
                <asp:BoundField DataField="exemption" DataFormatString="{0:c}" HeaderText="Exempt."
                    SortExpression="exemption"></asp:BoundField>
                <asp:BoundField DataField="equalfactor" DataFormatString="{0:f}%" HeaderText="Equaliz."
                    SortExpression="equalfactor" />
                <asp:BoundField DataField="netvalue" DataFormatString="{0:c}" HeaderText="Net" SortExpression="netvalue" />
            </Columns>
        </asp:GridView>
        <br />
        <font face="Verdana, Arial, Helvetica, sans-serif">
            <h2>
                Assessed Value:
            </h2>
        </font>
        <asp:GridView ID="GridView7" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            CssClass="grid" DataSourceID="SqlDataSource2" EnableSortingAndPagingCallbacks="True"
            EnableViewState="False">
            <HeaderStyle ForeColor="Black" />
            <RowStyle CssClass=grid  Font-Names="Verdana" />
            <Columns>
                <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                <asp:BoundField DataField="assessedpct" DataFormatString="{0:f}%" HeaderText="Assessed %"
                    SortExpression="assessedpct" />
                <asp:BoundField DataField="assessedvalue" DataFormatString="{0:c}" HeaderText="Assessed Value"
                    SortExpression="assessedvalue"></asp:BoundField>
                <asp:BoundField DataField="taxrate" DataFormatString="{0:f}%" HeaderText="Rate" SortExpression="taxrate" />
                <asp:BoundField DataField="nettax" DataFormatString="{0:c}" HeaderText="Tax Amount"
                    SortExpression="nettax">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="othertax" DataFormatString="{0:c}" HeaderText="Other"
                    SortExpression="othertax" />
                <asp:BoundField DataField="totaltax" DataFormatString="{0:c}" HeaderText="Total"
                    SortExpression="totaltax" />
            </Columns>
        </asp:GridView>
        </form>
    </body>
</div>
</html>

Open in new window

0
 
LVL 18

Expert Comment

by:David Robitaille
ID: 22723854
forget what i said about the RowStyle
you could remove the CssClass=grid from the gridviews and  try
<table><tr class="grid" ><td>
Grid stuff
  <tr class="grid" ><td></td></tr>
other grid stuff
 </td></tr></table>
0
 

Author Comment

by:thedeal56
ID: 22724717
Here's what I did.  I still cannot get it to work.  Thanks for sticking with me on this annoying problem.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<script runat="server">
 
 
 
    Protected Sub DataList2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
   
    Protected Sub GridView5_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView5.RowDataBound
        If e.Row.RowType = DataControlRowType.DataRow Then
            If e.Row.Cells(4).Text = "$1.00" Then
                e.Row.Cells(4).BackColor = Drawing.Color.Crimson
                e.Row.Cells(4).Text = "Clerk and Master"
            End If
        End If
    End Sub
 
    Protected Sub GridView2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
</script>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Print Records</title>
    <style type="text/css">
        .container
        {
            size: 8.5in 11in portrait;
            margin: 1cm;
            
        }
        h2
        {
            font-size: 14px;
            text-decoration: underline;
        }
        .grid
        {
            page-break-inside: avoid;
        }
        
    </style>
</head>
<div class="container">
    <body style="text-align: left">
        <form id="form1" runat="server" enableviewstate="True" method="post">
        <div style="width: 100%">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:proptaxConnectionString %>"
                SelectCommand="sp_TAXTop" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter ConvertEmptyStringToNull="False" Name="special" QueryStringField="special"
                        Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ProptaxConnectionString %>"
                SelectCommand="sp_TAXBottom" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String" />
                    <asp:QueryStringParameter Name="special" QueryStringField="special" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ProptaxConnectionString %>"
                SelectCommand="sp_Clerk" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String" />
                    <asp:QueryStringParameter Name="special" QueryStringField="special" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <table>
                <tr class="grid">
                    <td>
                        <h3>
                            Property Tax Information</h3>
                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CssClass="grid"
                            DataSourceID="SqlDataSource1" EnableViewState="False" DataKeyNames="special">
                            <RowStyle CssClass="grid" VerticalAlign="Top" Font-Names="Verdana" />
                            <Columns>
                                <asp:BoundField DataField="PIN" HeaderText="Parcel ID" SortExpression="PIN" ConvertEmptyStringToNull="False">
                                    <ItemStyle BorderWidth="0px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="property_add" HeaderText="Address" SortExpression="property_add"
                                    ConvertEmptyStringToNull="False">
                                    <ItemStyle BorderWidth="0px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="subdivision" HeaderText="Subdivision" SortExpression="subdivision"
                                    ConvertEmptyStringToNull="False" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <br />
                <tr class="grid">
                    <td>
                        <font face="Verdana, Arial, Helvetica, sans-serif">
                            <h2>
                                Property Description:</h2>
                        </font>
                        <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" CssClass="grid"
                            DataSourceID="SqlDataSource1" EnableViewState="False">
                            <RowStyle CssClass="grid" Font-Names="Verdana" />
                            <Columns>
                                <asp:BoundField DataField="add_description1" HeaderText="Description" SortExpression="add_description1" />
                                <asp:BoundField DataField="Deed" HeaderText="Deed" SortExpression="Deed" />
                                <asp:BoundField DataField="Plat" HeaderText="Plat" SortExpression="Plat" />
                                <asp:BoundField DataField="Acre" HeaderText="Acre" SortExpression="Acre" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <br />
                <tr class="grid">
                    <td>
                        <font face="Verdana, Arial, Helvetica, sans-serif">
                            <h2>
                                Owner:
                            </h2>
                        </font>
        </div>
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            CssClass="grid" DataSourceID="SqlDataSource2" PageSize="20" EnableSortingAndPagingCallbacks="True"
            EnableViewState="False">
            <HeaderStyle ForeColor="Black" />
            <RowStyle CssClass="grid" Font-Names="Verdana" />
            <Columns>
                <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
                <asp:BoundField DataField="name1" HeaderText="Owner Name" SortExpression="name1">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
                <asp:BoundField DataField="add1" HeaderText="Mailing Address" SortExpression="add1"
                    HtmlEncode="False" HtmlEncodeFormatString="False">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
        </td></tr>
        <br />
        <tr class="grid">
            <td>
                <font face="Verdana, Arial, Helvetica, sans-serif">
                    <h2>
                        Totals Due and Amounts Paid:</h2>
                </font>
                <asp:GridView ID="GridView5" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                    CssClass="grid" DataSourceID="SqlDataSource2" DataMember="DefaultView" PageSize="50"
                    OnRowDataBound="GridView5_RowDataBound" EnableSortingAndPagingCallbacks="True"
                    EnableViewState="False">
                    <HeaderStyle ForeColor="Black" />
                    <RowStyle CssClass="grid" BorderColor="White" Font-Names="Verdana" />
                    <Columns>
                        <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                        <asp:BoundField DataField="bill_no" HeaderText="Bill #" SortExpression="bill_no" />
                        <asp:BoundField ApplyFormatInEditMode="True" DataField="duetax" DataFormatString="{0:c2}"
                            HeaderText="Tax" HtmlEncode="False" SortExpression="duetax" />
                        <asp:BoundField DataField="duepenalty" HeaderText="Penalty/Interest" HtmlEncode="False"
                            SortExpression="duepenalty" DataFormatString="{0:c}">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="cm" HeaderText="Total Due" SortExpression="cm" DataFormatString="{0:c}">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="trans_amt" DataFormatString="{0:c}" HeaderText="Total Paid"
                            HtmlEncode="False" SortExpression="trans_amt">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="trans_yy" HeaderText="Paid Date" SortExpression="trans_yy">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr class="grid">
            <td>
                <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource3" ShowFooter="False"
                    ShowHeader="False" EnableViewState="False">
                    <ItemStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                        Font-Underline="False" ForeColor="Maroon" Font-Names="Verdana" />
                    <ItemTemplate>
                        <asp:Label ID="ctlmapLabel" runat="server" Text='<%# Eval("ClerkMaster") %>' />
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("notes") %>'></asp:Label>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
        <br />
        <tr class="grid">
            <td>
                <font face="Verdana, Arial, Helvetica, sans-serif">
                    <h2>
                        Appraised Value:
                    </h2>
                </font>
                <asp:GridView ID="GridView6" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                    CssClass="grid" DataSourceID="SqlDataSource2" EnableSortingAndPagingCallbacks="True"
                    EnableViewState="False" PageSize="50">
                    <HeaderStyle ForeColor="Black" />
                    <RowStyle Font-Names="Verdana" CssClass="grid" />
                    <Columns>
                        <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                        <asp:BoundField DataField="landvalue" DataFormatString="{0:c}" HeaderText="Land Value"
                            SortExpression="landvalue" />
                        <asp:BoundField DataField="improvevalue" DataFormatString="{0:c}" HeaderText="Improvements"
                            SortExpression="improvevalue" />
                        <asp:BoundField DataField="perpropvalue" DataFormatString="{0:c}" HeaderText="Pers. Prop."
                            SortExpression="perpropvalue"></asp:BoundField>
                        <asp:BoundField DataField="totalvalue" DataFormatString="{0:c}" HeaderText="Total"
                            SortExpression="totalvalue" />
                        <asp:BoundField DataField="exemption" DataFormatString="{0:c}" HeaderText="Exempt."
                            SortExpression="exemption"></asp:BoundField>
                        <asp:BoundField DataField="equalfactor" DataFormatString="{0:f}%" HeaderText="Equaliz."
                            SortExpression="equalfactor" />
                        <asp:BoundField DataField="netvalue" DataFormatString="{0:c}" HeaderText="Net" SortExpression="netvalue" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <br />
        <tr class="grid">
            <td>
                <font face="Verdana, Arial, Helvetica, sans-serif">
                    <h2>
                        Assessed Value:
                    </h2>
                </font>
                <asp:GridView ID="GridView7" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                    CssClass="grid" DataSourceID="SqlDataSource2" EnableSortingAndPagingCallbacks="True"
                    EnableViewState="False">
                    <HeaderStyle ForeColor="Black" />
                    <RowStyle CssClass="grid" Font-Names="Verdana" />
                    <Columns>
                        <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                        <asp:BoundField DataField="assessedpct" DataFormatString="{0:f}%" HeaderText="Assessed %"
                            SortExpression="assessedpct" />
                        <asp:BoundField DataField="assessedvalue" DataFormatString="{0:c}" HeaderText="Assessed Value"
                            SortExpression="assessedvalue"></asp:BoundField>
                        <asp:BoundField DataField="taxrate" DataFormatString="{0:f}%" HeaderText="Rate" SortExpression="taxrate" />
                        <asp:BoundField DataField="nettax" DataFormatString="{0:c}" HeaderText="Tax Amount"
                            SortExpression="nettax">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="othertax" DataFormatString="{0:c}" HeaderText="Other"
                            SortExpression="othertax" />
                        <asp:BoundField DataField="totaltax" DataFormatString="{0:c}" HeaderText="Total"
                            SortExpression="totaltax" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        </table>
        </form>
    </body>
</div>
</html>

Open in new window

0
 

Author Comment

by:thedeal56
ID: 22724723
oh, wait.  I just realized that I didn't remove the other class
0
 

Author Comment

by:thedeal56
ID: 22724776
Here's the code with just the <tr class="grid">. Same result.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<script runat="server">
 
 
 
    Protected Sub DataList2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
   
    Protected Sub GridView5_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView5.RowDataBound
        If e.Row.RowType = DataControlRowType.DataRow Then
            If e.Row.Cells(4).Text = "$1.00" Then
                e.Row.Cells(4).BackColor = Drawing.Color.Crimson
                e.Row.Cells(4).Text = "Clerk and Master"
            End If
        End If
    End Sub
 
    Protected Sub GridView2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
 
    End Sub
</script>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Print Records</title>
    <style type="text/css">
        .container
        {
            size: 8.5in 11in portrait;
            margin: 1cm;
            
        }
        h2
        {
            font-size: 14px;
            text-decoration: underline;
        }
        .grid
        {
            page-break-inside: avoid;
        }
        
    </style>
</head>
<div class="container">
    <body style="text-align: left">
        <form id="form1" runat="server" enableviewstate="True" method="post">
        <div style="width: 100%">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:proptaxConnectionString %>"
                SelectCommand="sp_TAXTop" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String"
                        ConvertEmptyStringToNull="False" />
                    <asp:QueryStringParameter ConvertEmptyStringToNull="False" Name="special" QueryStringField="special"
                        Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ProptaxConnectionString %>"
                SelectCommand="sp_TAXBottom" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String" />
                    <asp:QueryStringParameter Name="special" QueryStringField="special" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ProptaxConnectionString %>"
                SelectCommand="sp_Clerk" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ctlmap" QueryStringField="ctlmap" Type="String" />
                    <asp:QueryStringParameter Name="bill_group" QueryStringField="bill_group" Type="String" />
                    <asp:QueryStringParameter Name="bill_parcel" QueryStringField="bill_parcel" Type="String" />
                    <asp:QueryStringParameter Name="propertyid" QueryStringField="propertyid" Type="String" />
                    <asp:QueryStringParameter Name="special" QueryStringField="special" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            <table>
                <tr class="grid">
                    <td>
                        <h3>
                            Property Tax Information</h3>
                        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                            DataSourceID="SqlDataSource1" EnableViewState="False" DataKeyNames="special">
                            <RowStyle  VerticalAlign="Top" Font-Names="Verdana" />
                            <Columns>
                                <asp:BoundField DataField="PIN" HeaderText="Parcel ID" SortExpression="PIN" ConvertEmptyStringToNull="False">
                                    <ItemStyle BorderWidth="0px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="property_add" HeaderText="Address" SortExpression="property_add"
                                    ConvertEmptyStringToNull="False">
                                    <ItemStyle BorderWidth="0px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="subdivision" HeaderText="Subdivision" SortExpression="subdivision"
                                    ConvertEmptyStringToNull="False" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <br />
                <tr class="grid">
                    <td>
                        <font face="Verdana, Arial, Helvetica, sans-serif">
                            <h2>
                                Property Description:</h2>
                        </font>
                        <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" 
                            DataSourceID="SqlDataSource1" EnableViewState="False">
                            <RowStyle  Font-Names="Verdana" />
                            <Columns>
                                <asp:BoundField DataField="add_description1" HeaderText="Description" SortExpression="add_description1" />
                                <asp:BoundField DataField="Deed" HeaderText="Deed" SortExpression="Deed" />
                                <asp:BoundField DataField="Plat" HeaderText="Plat" SortExpression="Plat" />
                                <asp:BoundField DataField="Acre" HeaderText="Acre" SortExpression="Acre" />
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <br />
                <tr class="grid">
                    <td>
                        <font face="Verdana, Arial, Helvetica, sans-serif">
                            <h2>
                                Owner:
                            </h2>
                        </font>
        </div>
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
             DataSourceID="SqlDataSource2" PageSize="20" EnableSortingAndPagingCallbacks="True"
            EnableViewState="False">
            <HeaderStyle ForeColor="Black" />
            <RowStyle  Font-Names="Verdana" />
            <Columns>
                <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
                <asp:BoundField DataField="name1" HeaderText="Owner Name" SortExpression="name1">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
                <asp:BoundField DataField="add1" HeaderText="Mailing Address" SortExpression="add1"
                    HtmlEncode="False" HtmlEncodeFormatString="False">
                    <ControlStyle BorderWidth="2px" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
        </td></tr>
        <br />
        <tr class="grid">
            <td>
                <font face="Verdana, Arial, Helvetica, sans-serif">
                    <h2>
                        Totals Due and Amounts Paid:</h2>
                </font>
                <asp:GridView ID="GridView5" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                     DataSourceID="SqlDataSource2" DataMember="DefaultView" PageSize="50"
                    OnRowDataBound="GridView5_RowDataBound" EnableSortingAndPagingCallbacks="True"
                    EnableViewState="False">
                    <HeaderStyle ForeColor="Black" />
                    <RowStyle  BorderColor="White" Font-Names="Verdana" />
                    <Columns>
                        <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                        <asp:BoundField DataField="bill_no" HeaderText="Bill #" SortExpression="bill_no" />
                        <asp:BoundField ApplyFormatInEditMode="True" DataField="duetax" DataFormatString="{0:c2}"
                            HeaderText="Tax" HtmlEncode="False" SortExpression="duetax" />
                        <asp:BoundField DataField="duepenalty" HeaderText="Penalty/Interest" HtmlEncode="False"
                            SortExpression="duepenalty" DataFormatString="{0:c}">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="cm" HeaderText="Total Due" SortExpression="cm" DataFormatString="{0:c}">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="trans_amt" DataFormatString="{0:c}" HeaderText="Total Paid"
                            HtmlEncode="False" SortExpression="trans_amt">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="trans_yy" HeaderText="Paid Date" SortExpression="trans_yy">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr class="grid">
            <td>
                <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource3" ShowFooter="False"
                    ShowHeader="False" EnableViewState="False">
                    <ItemStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                        Font-Underline="False" ForeColor="Maroon" Font-Names="Verdana" />
                    <ItemTemplate>
                        <asp:Label ID="ctlmapLabel" runat="server" Text='<%# Eval("ClerkMaster") %>' />
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("notes") %>'></asp:Label>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
        <br />
        <tr class="grid">
            <td>
                <font face="Verdana, Arial, Helvetica, sans-serif">
                    <h2>
                        Appraised Value:
                    </h2>
                </font>
                <asp:GridView ID="GridView6" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                     DataSourceID="SqlDataSource2" EnableSortingAndPagingCallbacks="True"
                    EnableViewState="False" PageSize="50">
                    <HeaderStyle ForeColor="Black" />
                    <RowStyle Font-Names="Verdana"  />
                    <Columns>
                        <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                        <asp:BoundField DataField="landvalue" DataFormatString="{0:c}" HeaderText="Land Value"
                            SortExpression="landvalue" />
                        <asp:BoundField DataField="improvevalue" DataFormatString="{0:c}" HeaderText="Improvements"
                            SortExpression="improvevalue" />
                        <asp:BoundField DataField="perpropvalue" DataFormatString="{0:c}" HeaderText="Pers. Prop."
                            SortExpression="perpropvalue"></asp:BoundField>
                        <asp:BoundField DataField="totalvalue" DataFormatString="{0:c}" HeaderText="Total"
                            SortExpression="totalvalue" />
                        <asp:BoundField DataField="exemption" DataFormatString="{0:c}" HeaderText="Exempt."
                            SortExpression="exemption"></asp:BoundField>
                        <asp:BoundField DataField="equalfactor" DataFormatString="{0:f}%" HeaderText="Equaliz."
                            SortExpression="equalfactor" />
                        <asp:BoundField DataField="netvalue" DataFormatString="{0:c}" HeaderText="Net" SortExpression="netvalue" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <br />
        <tr class="grid">
            <td>
                <font face="Verdana, Arial, Helvetica, sans-serif">
                    <h2>
                        Assessed Value:
                    </h2>
                </font>
                <asp:GridView ID="GridView7" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                     DataSourceID="SqlDataSource2" EnableSortingAndPagingCallbacks="True"
                    EnableViewState="False">
                    <HeaderStyle ForeColor="Black" />
                    <RowStyle  Font-Names="Verdana" />
                    <Columns>
                        <asp:BoundField DataField="bill_year" HeaderText="Year" SortExpression="bill_year" />
                        <asp:BoundField DataField="assessedpct" DataFormatString="{0:f}%" HeaderText="Assessed %"
                            SortExpression="assessedpct" />
                        <asp:BoundField DataField="assessedvalue" DataFormatString="{0:c}" HeaderText="Assessed Value"
                            SortExpression="assessedvalue"></asp:BoundField>
                        <asp:BoundField DataField="taxrate" DataFormatString="{0:f}%" HeaderText="Rate" SortExpression="taxrate" />
                        <asp:BoundField DataField="nettax" DataFormatString="{0:c}" HeaderText="Tax Amount"
                            SortExpression="nettax">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="othertax" DataFormatString="{0:c}" HeaderText="Other"
                            SortExpression="othertax" />
                        <asp:BoundField DataField="totaltax" DataFormatString="{0:c}" HeaderText="Total"
                            SortExpression="totaltax" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        </table>
        </form>
    </body>
</div>
</html>

Open in new window

0
 
LVL 18

Expert Comment

by:David Robitaille
ID: 22724825
and what if you remove the <div class="container">
i berak on the middle when you print it on witch browser?
Could you send the generated html (rightclick view source)
0
 

Author Comment

by:thedeal56
ID: 22724894
I removed the div.  I am testing it on FireFox and IE7, but I haven't seen a change in either throughout the tests.  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
 
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
	Print Records
</title>
    <style type="text/css">
        .container
        {
            size: 8.5in 11in portrait;
            margin: 1cm;
             margin-top:-3cm;
        }
        h2
        {
            font-size: 14px;
            text-decoration: underline;
        }
        .grid
        {
            page-break-inside: avoid;
            page-braak-after:auto;
            page-break-before:auto;
        }
        
    </style>
</head>
 
    <body style="text-align: left">
        <form name="form1" method="post" action="print.aspx?ekmenu=142&amp;id=print&amp;ctlmap=102E+&amp;bill_group=E+&amp;bill_parcel=00500&amp;propertyid=+&amp;special=000&amp;district=13" id="form1">
<div>
 
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__gvGridView1__hidden" id="__gvGridView1__hidden" value="" />
<input type="hidden" name="__gvGridView5__hidden" id="__gvGridView5__hidden" value="" />
<input type="hidden" name="__gvGridView6__hidden" id="__gvGridView6__hidden" value="" />
<input type="hidden" name="__gvGridView7__hidden" id="__gvGridView7__hidden" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="+kdj7kouMcHsGKNJ7Yqa0qssGoB46OsrseEHSh3DP3RPkSsqL1PHqhyQd7zWurlvF/RyTrzulugQ6L2OovvGHySMavFfU04G1XE+pDt/x7AchPFxRY8iMQE20JcfnAI0g14Q7d91+44U7Fp4m4N97h8S1YuYpUDlRCDmeFaVcnj0kErZ8Yk1HcHqoWgek0usiC3neXa0Esze1WGyNM24SflD4siZl9mwW18wQgQYbRjlTphnt/pw9OpOZhBw4A4FnljZ3m3ZDhwFhTRmqLTlpt2LU9WQ8l0YCMCjcAC2uN73JEsM0/0VzBIHvQWNXZzCr125ktcph5WV++8MTBDHDtz20YRSIcJJYI3VHcAaK+0ASsX4A6LIbYMfW5Mgz6ZxuZbbs4XQ1Q/IRfTdYY0bM0QrW43s5/Z8Almfm6yGodq7qzGUwXtXNuaXm87KXEqwCAYT+SAa6JryGJlDIQ5pr8WxQbni4A0EG9tkxnwE0lsqigEyN+qlkuqjXJ4D8mgwvQ0xpv6r5TLJjYQPeTWqI6Ox/9YfhhdYMcxCzIzKmSCDVRmmfJp6mLRw2f82GYtVGUVlT+3yNy3IGFyXrdP+LA==" />
</div>
 
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>
 
 
<script src="/stage/WebResource.axd?d=TtqWUV9bWf3iFt8RK4GNkA2&amp;t=633440223204195736" type="text/javascript"></script>
 
 
<script src="/stage/WebResource.axd?d=eFyhUJJvq_05wNF7JT_QaA2&amp;t=633440223204195736" type="text/javascript"></script>
        <div style="width: 100%">
            
            
            
            <table>
                <tr class="grid">
                    <td>
                        <h3>
                            Property Tax Information</h3>
                        <div>
 
	<table cellspacing="0" rules="all" border="1" id="GridView2" style="border-collapse:collapse;">
		<tr>
			<th scope="col">Parcel ID</th><th scope="col">Address</th><th scope="col">Subdivision</th>
		</tr><tr valign="top" style="font-family:Verdana;">
			<td style="border-width:0px;">-102E-E-102E-00500--000</td><td style="border-width:0px;">1014 HOUSTON DR           </td><td>BELLWOOD                  </td>
		</tr>
 
	</table>
</div>
                    </td>
                </tr>
                <br />
                <tr class="grid">
                    <td>
                        <font face="Verdana, Arial, Helvetica, sans-serif">
                            <h2>
 
                                Property Description:</h2>
                        </font>
                        <div>
	<table cellspacing="0" rules="all" border="1" id="GridView4" style="border-collapse:collapse;">
		<tr>
			<th scope="col">Description</th><th scope="col">Deed</th><th scope="col">Plat</th><th scope="col">Acre</th>
 
		</tr><tr style="font-family:Verdana;">
			<td>R0065190                  </td><td>465-2048 01/18/2005</td><td>---77</td><td>          1/1</td>
		</tr>
	</table>
</div>
                    </td>
                </tr>
 
                <br />
                <tr class="grid">
                    <td>
                        <font face="Verdana, Arial, Helvetica, sans-serif">
                            <h2>
                                Owner:
                            </h2>
                        </font>
        </div>
 
        <div id="__gvGridView1__div">
	<table cellspacing="0" rules="all" border="1" id="GridView1" style="border-collapse:collapse;">
		<tr style="color:Black;">
			<th scope="col"><a onclick="javascript:__gvGridView1.callback(&quot;0|0|D3MflMQI1WZhR6YS2MvXh70OITXW3Fum9X2AUVPeTtI=|&quot;); return false;" href="javascript:__doPostBack('GridView1','Sort$bill_year')" style="color:Black;">Year</a></th><th scope="col"><a onclick="javascript:__gvGridView1.callback(&quot;0|0|PbuDZ2kDQuA02j4259hW3w==|&quot;); return false;" href="javascript:__doPostBack('GridView1','Sort$name1')" style="color:Black;">Owner Name</a></th><th scope="col"><a onclick="javascript:__gvGridView1.callback(&quot;0|0|R+nU2VmtmCMom0gRoB6D5A==|&quot;); return false;" href="javascript:__doPostBack('GridView1','Sort$add1')" style="color:Black;">Mailing Address</a></th>
		</tr><tr style="font-family:Verdana;">
			<td>2006</td><td>SMOTHERMAN PROPERTIES     </td><td>CO EDDIE SMOTHERMAN        MURFREESBORO TN 37130     </td>
 
		</tr><tr style="font-family:Verdana;">
			<td>2005</td><td>SMOTHERMAN E H ETUX       </td><td>1014 HOUSTON DR            MURFREESBORO      TN 37130</td>
		</tr><tr style="font-family:Verdana;">
			<td>2004</td><td>SMOTHERMAN E H ETUX       </td><td>1014 HOUSTON DR            MURFREESBORO      TN 37130</td>
		</tr><tr style="font-family:Verdana;">
			<td>2003</td><td>SMOTHERMAN E H ETUX       </td><td>1014 HOUSTON DR            MURFREESBORO      TN 37130</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>2002</td><td>SMOTHERMAN E H ETUX       </td><td>1014 HOUSTON DR            MURFREESBORO      TN 37130</td>
		</tr><tr style="font-family:Verdana;">
			<td>2001</td><td>SMOTHERMAN E H ETUX       </td><td>1014 HOUSTON DR            MURFREESBORO      TN 37130</td>
		</tr><tr style="font-family:Verdana;">
			<td>2000</td><td>SMOTHERMAN E H ETUX       </td><td>1014 HOUSTON DR            MURFREESBORO      TN 37130</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>1999</td><td>SMOTHERMAN E H ETUX       </td><td>1014 HOUSTON DR            MURFREESBORO      TN 37130</td>
		</tr><tr style="font-family:Verdana;">
			<td>1998</td><td>SMOTHERMAN E H ETUX       </td><td>1014 HOUSTON DR            MURFREESBORO      TN 37130</td>
		</tr><tr style="font-family:Verdana;">
			<td>1997</td><td>SMOTHERMAN E H ETUX       </td><td>1014 HOUSTON DR            MURFREESBORO      TN 37130</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>1996</td><td>SMOTHERMAN E H ETUX       </td><td>1014 HOUSTON DR            MURFREESBORO      TN 37130</td>
		</tr><tr style="font-family:Verdana;">
			<td>1995</td><td>SMOTHERMAN E H ETUX       </td><td>1014 HOUSTON DR            MURFREESBORO      TN 37130</td>
		</tr><tr style="font-family:Verdana;">
			<td>1994</td><td>JARRATT OCTAVIA           </td><td>224 OCEAN PARK DR          FLAGLER BEACH     FL 32136</td>
 
		</tr>
	</table>
</div>
        </td></tr>
        <br />
        <tr class="grid">
            <td>
                <font face="Verdana, Arial, Helvetica, sans-serif">
                    <h2>
 
                        Totals Due and Amounts Paid:</h2>
                </font>
                <div id="__gvGridView5__div">
	<table cellspacing="0" rules="all" border="1" id="GridView5" style="border-collapse:collapse;">
		<tr style="color:Black;">
			<th scope="col"><a onclick="javascript:__gvGridView5.callback(&quot;0|0|D3MflMQI1WZhR6YS2MvXh70OITXW3Fum9X2AUVPeTtI=|&quot;); return false;" href="javascript:__doPostBack('GridView5','Sort$bill_year')" style="color:Black;">Year</a></th><th scope="col"><a onclick="javascript:__gvGridView5.callback(&quot;0|0|DuLzEGUu3YvH7T4OiO10Uw==|&quot;); return false;" href="javascript:__doPostBack('GridView5','Sort$bill_no')" style="color:Black;">Bill #</a></th><th scope="col"><a onclick="javascript:__gvGridView5.callback(&quot;0|0|Ni0D0GXwQdoqBzqTT3WrLA==|&quot;); return false;" href="javascript:__doPostBack('GridView5','Sort$duetax')" style="color:Black;">Tax</a></th><th scope="col"><a onclick="javascript:__gvGridView5.callback(&quot;0|0|Q/xCVmQabgjnp/BWEZxoLccImAzFYqoj89wF0GLSsvs=|&quot;); return false;" href="javascript:__doPostBack('GridView5','Sort$duepenalty')" style="color:Black;">Penalty/Interest</a></th><th scope="col"><a onclick="javascript:__gvGridView5.callback(&quot;0|0|HbfbY4iTcI51K8aBJCbRMA==|&quot;); return false;" href="javascript:__doPostBack('GridView5','Sort$cm')" style="color:Black;">Total Due</a></th><th scope="col"><a onclick="javascript:__gvGridView5.callback(&quot;0|0|uK4eZfwTZ+5i46EtMSM13yCIVuKec3iNmcBe+Z7tnqI=|&quot;); return false;" href="javascript:__doPostBack('GridView5','Sort$trans_amt')" style="color:Black;">Total Paid</a></th><th scope="col"><a onclick="javascript:__gvGridView5.callback(&quot;0|0|Ln/dx2PIeAJz/PEvdzpKuF/iJWWVehHqTJ36v1NaZIY=|&quot;); return false;" href="javascript:__doPostBack('GridView5','Sort$trans_yy')" style="color:Black;">Paid Date</a></th>
 
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>2006</td><td>28600</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$658.00</td><td align="center">1/18/2007</td>
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>2005</td><td>26988</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$668.00</td><td align="center">11/16/2005</td>
 
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>2004</td><td>25363</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$668.00</td><td align="center">12/10/2004</td>
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>2003</td><td>23986</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$668.00</td><td align="center">11/13/2003</td>
 
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>2002</td><td>22698</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$668.00</td><td align="center">12/31/2002</td>
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>2001</td><td>22049</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$671.00</td><td align="center">1/31/2002</td>
 
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>2000</td><td>20863</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$691.00</td><td align="center">3/8/2001</td>
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>1999</td><td>19626</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$658.00</td><td align="center">1/28/2000</td>
 
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>1998</td><td>18682</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$648.00</td><td align="center">11/23/1998</td>
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>1997</td><td>17956</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$624.00</td><td align="center">12/8/1997</td>
 
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>1996</td><td>16700</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$624.00</td><td align="center">11/20/1996</td>
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>1995</td><td>15991</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$629.00</td><td align="center">12/19/1995</td>
 
		</tr><tr style="border-color:White;font-family:Verdana;">
			<td>1994</td><td>8407</td><td>$0.00</td><td align="center">$0.00</td><td align="center">$0.00</td><td align="center">$635.00</td><td align="center">12/14/1994</td>
		</tr>
	</table>
</div>
            </td>
 
        </tr>
        <tr class="grid">
            <td>
                <table id="DataList1" cellspacing="0" border="0" style="border-collapse:collapse;">
	<tr>
		<td style="color:Maroon;font-family:Verdana;font-weight:bold;font-style:normal;text-decoration:none;">
                        <span id="DataList1_ctl00_ctlmapLabel"></span>
                        <span id="DataList1_ctl00_Label1"></span>
                    </td>
 
	</tr>
</table>
            </td>
        </tr>
        <br />
        <tr class="grid">
            <td>
                <font face="Verdana, Arial, Helvetica, sans-serif">
                    <h2>
 
                        Appraised Value:
                    </h2>
                </font>
                <div id="__gvGridView6__div">
	<table cellspacing="0" rules="all" border="1" id="GridView6" style="border-collapse:collapse;">
		<tr style="color:Black;">
			<th scope="col"><a onclick="javascript:__gvGridView6.callback(&quot;0|0|D3MflMQI1WZhR6YS2MvXh70OITXW3Fum9X2AUVPeTtI=|&quot;); return false;" href="javascript:__doPostBack('GridView6','Sort$bill_year')" style="color:Black;">Year</a></th><th scope="col"><a onclick="javascript:__gvGridView6.callback(&quot;0|0|uYaar89hfAnXCUf6IB715FSm0NNbbKfwmmQbGMicDrI=|&quot;); return false;" href="javascript:__doPostBack('GridView6','Sort$landvalue')" style="color:Black;">Land Value</a></th><th scope="col"><a onclick="javascript:__gvGridView6.callback(&quot;0|0|Ygfc3k0OvnAGnZ1oYSYoQxhHjid46FbfXwzq1yeCuUw=|&quot;); return false;" href="javascript:__doPostBack('GridView6','Sort$improvevalue')" style="color:Black;">Improvements</a></th><th scope="col"><a onclick="javascript:__gvGridView6.callback(&quot;0|0|AVZtvVPbXENaR2Gc73ysJMCcZwInmUbHUPjGnaiagXU=|&quot;); return false;" href="javascript:__doPostBack('GridView6','Sort$perpropvalue')" style="color:Black;">Pers. Prop.</a></th><th scope="col"><a onclick="javascript:__gvGridView6.callback(&quot;0|0|HmYaefxn4+uLx6SbVqdO1te5na0rUSNtaYv0jGv/Bic=|&quot;); return false;" href="javascript:__doPostBack('GridView6','Sort$totalvalue')" style="color:Black;">Total</a></th><th scope="col"><a onclick="javascript:__gvGridView6.callback(&quot;0|0|EUbIs7h55KMYKTv2tTFYcn6bfbo4RrRA7loG8hq7X9I=|&quot;); return false;" href="javascript:__doPostBack('GridView6','Sort$exemption')" style="color:Black;">Exempt.</a></th><th scope="col"><a onclick="javascript:__gvGridView6.callback(&quot;0|0|Lbgo+Zrcc9ziawTDBRdhhr8mfw0Q2d16hQtvFGbZaTM=|&quot;); return false;" href="javascript:__doPostBack('GridView6','Sort$equalfactor')" style="color:Black;">Equaliz.</a></th><th scope="col"><a onclick="javascript:__gvGridView6.callback(&quot;0|0|+Ex7ad0eYWXekY2RVAmeC6givAdIvaV/PZDA9pDbG90=|&quot;); return false;" href="javascript:__doPostBack('GridView6','Sort$netvalue')" style="color:Black;">Net</a></th>
 
		</tr><tr style="font-family:Verdana;">
			<td>2006</td><td>$31,300.00</td><td>$152,800.00</td><td>$0.00</td><td>$184,100.00</td><td>$0.00</td><td>0.00%</td><td>$184,100.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>2005</td><td>$25,000.00</td><td>$130,300.00</td><td>$0.00</td><td>$155,300.00</td><td>$0.00</td><td>0.00%</td><td>$155,300.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>2004</td><td>$25,000.00</td><td>$130,300.00</td><td>$0.00</td><td>$155,300.00</td><td>$0.00</td><td>0.00%</td><td>$155,300.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>2003</td><td>$25,000.00</td><td>$130,300.00</td><td>$0.00</td><td>$155,300.00</td><td>$0.00</td><td>0.00%</td><td>$155,300.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>2002</td><td>$25,000.00</td><td>$130,300.00</td><td>$0.00</td><td>$155,300.00</td><td>$0.00</td><td>0.00%</td><td>$155,300.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>2001</td><td>$21,500.00</td><td>$117,700.00</td><td>$0.00</td><td>$139,200.00</td><td>$0.00</td><td>0.00%</td><td>$139,200.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>2000</td><td>$21,500.00</td><td>$117,700.00</td><td>$0.00</td><td>$139,200.00</td><td>$0.00</td><td>0.00%</td><td>$139,200.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>1999</td><td>$21,500.00</td><td>$114,900.00</td><td>$0.00</td><td>$136,400.00</td><td>$0.00</td><td>0.00%</td><td>$136,400.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>1998</td><td>$21,500.00</td><td>$114,900.00</td><td>$0.00</td><td>$136,400.00</td><td>$0.00</td><td>0.00%</td><td>$136,400.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>1997</td><td>$18,500.00</td><td>$91,900.00</td><td>$0.00</td><td>$110,400.00</td><td>$0.00</td><td>0.00%</td><td>$110,400.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>1996</td><td>$18,500.00</td><td>$91,900.00</td><td>$0.00</td><td>$110,400.00</td><td>$0.00</td><td>0.00%</td><td>$110,400.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>1995</td><td>$18,500.00</td><td>$91,900.00</td><td>$0.00</td><td>$110,400.00</td><td>$0.00</td><td>0.00%</td><td>$110,400.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>1994</td><td>$18,500.00</td><td>$91,900.00</td><td>$0.00</td><td>$110,400.00</td><td>$0.00</td><td>0.00%</td><td>$110,400.00</td>
		</tr>
	</table>
</div>
 
            </td>
        </tr>
        <br />
        <tr class="grid">
            <td>
                <font face="Verdana, Arial, Helvetica, sans-serif">
                    <h2>
                        Assessed Value:
                    </h2>
 
                </font>
                <div id="__gvGridView7__div">
	<table cellspacing="0" rules="all" border="1" id="GridView7" style="border-collapse:collapse;">
		<tr style="color:Black;">
			<th scope="col"><a onclick="javascript:__gvGridView7.callback(&quot;0|0|D3MflMQI1WZhR6YS2MvXh70OITXW3Fum9X2AUVPeTtI=|&quot;); return false;" href="javascript:__doPostBack('GridView7','Sort$bill_year')" style="color:Black;">Year</a></th><th scope="col"><a onclick="javascript:__gvGridView7.callback(&quot;0|0|2MvX6+yro4t6RxCanjHqn8Flm4oaHbhzMzvpNX0a+r0=|&quot;); return false;" href="javascript:__doPostBack('GridView7','Sort$assessedpct')" style="color:Black;">Assessed %</a></th><th scope="col"><a onclick="javascript:__gvGridView7.callback(&quot;0|0|DrQAejGDM34lWNwchwd02ECctd0bwU81eNPutWHc9Vg=|&quot;); return false;" href="javascript:__doPostBack('GridView7','Sort$assessedvalue')" style="color:Black;">Assessed Value</a></th><th scope="col"><a onclick="javascript:__gvGridView7.callback(&quot;0|0|94K9TMuw//3RU1P678UiVw==|&quot;); return false;" href="javascript:__doPostBack('GridView7','Sort$taxrate')" style="color:Black;">Rate</a></th><th scope="col"><a onclick="javascript:__gvGridView7.callback(&quot;0|0|RkMXju9LbZzUPRB8uEgh3A==|&quot;); return false;" href="javascript:__doPostBack('GridView7','Sort$nettax')" style="color:Black;">Tax Amount</a></th><th scope="col"><a onclick="javascript:__gvGridView7.callback(&quot;0|0|2ccmOrLF5CYQNkGZcMaeL24IiajqfS1BEVf2TvSoikI=|&quot;); return false;" href="javascript:__doPostBack('GridView7','Sort$othertax')" style="color:Black;">Other</a></th><th scope="col"><a onclick="javascript:__gvGridView7.callback(&quot;0|0|28ivwtVe5LgO+9fEEBAKuvBIeRJKS1AyPF1LxtbRcSw=|&quot;); return false;" href="javascript:__doPostBack('GridView7','Sort$totaltax')" style="color:Black;">Total</a></th>
 
		</tr><tr style="font-family:Verdana;">
			<td>2006</td><td>25.00%</td><td>$46,025.00</td><td>1.41%</td><td align="center">$648.00</td><td>$0.00</td><td>$648.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>2005</td><td>25.00%</td><td>$38,825.00</td><td>1.72%</td><td align="center">$668.00</td><td>$0.00</td><td>$668.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>2004</td><td>25.00%</td><td>$38,825.00</td><td>1.72%</td><td align="center">$668.00</td><td>$0.00</td><td>$668.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>2003</td><td>25.00%</td><td>$38,825.00</td><td>1.72%</td><td align="center">$668.00</td><td>$0.00</td><td>$668.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>2002</td><td>25.00%</td><td>$38,825.00</td><td>1.72%</td><td align="center">$668.00</td><td>$0.00</td><td>$668.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>2001</td><td>25.00%</td><td>$34,800.00</td><td>1.90%</td><td align="center">$661.00</td><td>$0.00</td><td>$661.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>2000</td><td>25.00%</td><td>$34,800.00</td><td>1.90%</td><td align="center">$661.00</td><td>$0.00</td><td>$661.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>1999</td><td>25.00%</td><td>$34,100.00</td><td>1.90%</td><td align="center">$648.00</td><td>$0.00</td><td>$648.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>1998</td><td>25.00%</td><td>$34,100.00</td><td>1.90%</td><td align="center">$648.00</td><td>$0.00</td><td>$648.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>1997</td><td>25.00%</td><td>$27,600.00</td><td>2.26%</td><td align="center">$624.00</td><td>$0.00</td><td>$624.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>1996</td><td>25.00%</td><td>$27,600.00</td><td>2.26%</td><td align="center">$624.00</td><td>$0.00</td><td>$624.00</td>
		</tr><tr style="font-family:Verdana;">
			<td>1995</td><td>25.00%</td><td>$27,600.00</td><td>2.28%</td><td align="center">$629.00</td><td>$0.00</td><td>$629.00</td>
 
		</tr><tr style="font-family:Verdana;">
			<td>1994</td><td>25.00%</td><td>$27,600.00</td><td>2.30%</td><td align="center">$635.00</td><td>$0.00</td><td>$635.00</td>
		</tr>
	</table>
</div>
            </td>
 
        </tr>
        </table>
        
<div>
 
	<input type="hidden" name="__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED" value="" />
</div>
 
<script type="text/javascript">
//<![CDATA[
 
WebForm_InitCallback();
var __gvGridView1 = new GridView();
__gvGridView1.stateField = document.getElementById('__gvGridView1__hidden');
__gvGridView1.panelElement = document.getElementById('__gvGridView1__div');
__gvGridView1.pageIndex = 0;
__gvGridView1.sortExpression = "pWq0JFgH4sumPQW3XbjElA==";
__gvGridView1.sortDirection = 0;
__gvGridView1.setStateField();
__gvGridView1.callback = function(arg) {
    WebForm_DoCallback('GridView1',__gvGridView1.getHiddenFieldContents(arg),GridView_OnCallback,__gvGridView1,null,false);
};
var __gvGridView5 = new GridView();
__gvGridView5.stateField = document.getElementById('__gvGridView5__hidden');
__gvGridView5.panelElement = document.getElementById('__gvGridView5__div');
__gvGridView5.pageIndex = 0;
__gvGridView5.sortExpression = "pWq0JFgH4sumPQW3XbjElA==";
__gvGridView5.sortDirection = 0;
__gvGridView5.setStateField();
__gvGridView5.callback = function(arg) {
    WebForm_DoCallback('GridView5',__gvGridView5.getHiddenFieldContents(arg),GridView_OnCallback,__gvGridView5,null,false);
};
var __gvGridView6 = new GridView();
__gvGridView6.stateField = document.getElementById('__gvGridView6__hidden');
__gvGridView6.panelElement = document.getElementById('__gvGridView6__div');
__gvGridView6.pageIndex = 0;
__gvGridView6.sortExpression = "pWq0JFgH4sumPQW3XbjElA==";
__gvGridView6.sortDirection = 0;
__gvGridView6.setStateField();
__gvGridView6.callback = function(arg) {
    WebForm_DoCallback('GridView6',__gvGridView6.getHiddenFieldContents(arg),GridView_OnCallback,__gvGridView6,null,false);
};
var __gvGridView7 = new GridView();
__gvGridView7.stateField = document.getElementById('__gvGridView7__hidden');
__gvGridView7.panelElement = document.getElementById('__gvGridView7__div');
__gvGridView7.pageIndex = 0;
__gvGridView7.sortExpression = "pWq0JFgH4sumPQW3XbjElA==";
__gvGridView7.sortDirection = 0;
__gvGridView7.setStateField();
__gvGridView7.callback = function(arg) {
    WebForm_DoCallback('GridView7',__gvGridView7.getHiddenFieldContents(arg),GridView_OnCallback,__gvGridView7,null,false);
};//]]>
</script>
</form>
    </body>
 
</html>

Open in new window

0
 
LVL 18

Accepted Solution

by:
David Robitaille earned 500 total points
ID: 22725093
oops, i just saw why it<s dont work...
http://reference.sitepoint.com/css/page-break-inside
but now you know why the whole thing dont work...
0
 

Author Comment

by:thedeal56
ID: 22725608
Ah, I see.  Do I have any other options for achieving my goal, or am I pretty much out of luck?  I saw one post talking about writing some code to add breaks after a certain number of words.  I would rather not go the word route if that's at all possible.  I might not be able to respond again until sometime tomorrow.  Thanks for all your speedy replies.
0
 
LVL 18

Assisted Solution

by:David Robitaille
David Robitaille earned 500 total points
ID: 22725720
i found that,  (scrool down an the end of the page) but seem a bit tricky.
http://www.ahfb2000.com/webmaster_help_desk/showthread.php?t=1950
I guess that all the help i could provide you on this one...
0
 

Author Comment

by:thedeal56
ID: 22730508
I'll give that a shot.  I'm actually really surprised that firefox 3 doesn't support page-break-inside.  I appreciate all your help.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question