日期:2014-05-17  浏览次数:20451 次

AspNetPager1.Visable=false时它所控制的gridview也隐藏了,怎么使gridview不隐藏
AspNetPager1.Visable=false时它所控制的gridview也隐藏了,怎么使gridview不隐藏
只隐藏aspNetPager
用div也是一样的结果
如:前台
<div id="pagerdiv" runat="server">
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="true"  
                            PageSize="10" CssClass="paginator"   CurrentPageButtonClass="cpb"
                            LastPageText="尾页" FirstPageText="首页" PrevPageText="上一页" NextPageText="下一页"
                            UrlPaging="false" NumericButtonTextFormatString="{0}" SubmitButtonText="Go"  SubmitButtonClass="css1"
                            ShowCustomInfoSection="Left" onpagechanged="AspNetPager1_PageChanged"  CustomInfoTextAlign="Left" LayoutType="Table" >
</webdiyer:AspNetPager>
</div>
后台
pagerdiv.visable=false;

------解决方案--------------------
应该不会的,AspNetPager1.Visable=false;只会隐藏AspNetPager,不会操作gridview的。你查查看,有什么地方引用了gridview。