日期:2014-05-17 浏览次数:20827 次
[color=#3366FF]<iframe id="treeinfo" name="resultFrame" marginwidth="0" marginheight="0" src="about:blank" frameborder="0" width="100%" scrolling="no"
onload="this.style.height=treeinfo.document.body.scrollHeight" height="100%">
</iframe>[/color]
<body style="background-color: #E8F5FE;" >
<form id="form1" runat="server">
<div id="listDiv" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>"
.....省略掉
</asp:SqlDataSource>
<asp:ListView ID="ListView1" runat="server" DataKeyNames="N_UNITID"
DataSourceID="SqlDataSource1" >
.....省略掉
</asp:ListView>
<[color=#FF0000]asp:DataPager[/color] ID="DataPager2" runat="server" PagedControlID="ListView1"
PageSize="5" onprerender="DataPager2_PreRender" >
<Fields>
<asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="True" ShowPreviousPageButton="True" ShowLastPageButton="True" RenderDisabledButtonsAsLabels="False" />
<asp:NumericPagerField ButtonCount="10" />
</Fields>
</[color=#FF0000]asp:DataPager[/color]>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
[color=#800080]parent.document.getElementById('treeinfo').style.height = parent.treeinfo.document.body.scrollHeight;[/color]