留言簿
留言成功,请等待站长审核,谢谢支持!
2008-12-30 13:17 yknb
怎么不支持每页显示多少条数据动态设置
回复:是的,暂时不支持,这个想法很早就有,但不太好实现,所以没有做出来。谢谢!
2008-12-30 11:09 onedotone
请问带Search的存储过程如何使用该控件?示例中哪个是与此相关的?谢谢!
回复:您好,您说的是哪个带Search的存储过程?示例中好象没有用到带Search的存储过程的。谢谢!
2008-12-29 10:17 andyguo
Repeater和AspNetPager分页以前用DataTable做数据源时没问题,现在我用的Lsit<实体>做数据源,不知道要设什么属性,页数据显示出来了,点下一页没效果,期待你的回复,如果可以发到我邮箱谢谢下面是代码:<br>页面:<webdiyer:AspNetPager runat="server" ID="AspNetPager2" AlwaysShow="true" ShowBoxThreshold="1" FirstPageText="First" LastPageText="Last" NextPageText="Next" PrevPageText="Prev" Font-Names="Arial" OnPageChanged="AspNetPager2_PageChanged"></webdiyer:AspNetPager><br>CS代码<br> List<Products> coll = null;<br> reProductList.DataSource = coll;<br> AspNetPager2.RecordCount = coll.Count;<br> AspNetPager2.PageSize = 10;<br> reProductList.DataBind();
回复:您好,分页控件和数据源没有直接关系,和数据是DataTable还是List泛型数据更没有任何关系,您应该检查一下您是如何设置分页控件的相关属性及编写分页事件处理程序的,可以帖相应的代码看看。谢谢!
2008-12-28 09:57 sdm68
7.2分页控件是否支持VS2008
回复:支持,本身就是用VS2008开发的。谢谢!
2008-12-25 13:51 mashiro
我是昨天遇到重復綁定問題的那位<br>謝謝你的回覆^^<br>我按你說的把page_load里的綁定去掉之后,運行正常~~真是非常感謝<br>不過也遇到了新的問題:<br>按下頁數后也無法分頁(始終停留在第一頁),調試發現AspNetPager1.CurrentPageIndex始終為1,于是我使用了if(Request["page"] != null)<br>{<br> //use Request["page"]<br>GetPage(sql, int.Parse(Request["page"]), this.AspNetPager1.PageSize, out recordcount)<br>}<br>else<br>{<br> //use Request["page"]<br>GetPage(sql, this.AspNetPager1.CurrentPageIndex, this.AspNetPager1.PageSize, out recordcount)<br>}<br><br>這種方法來取得當前頁數,請問這里無法直接取得當前頁數是不是有bug?<br>我使用的是v7.02
回复:您好,无法分页的问题一般出现在设置RecordCount属性太迟引起的,您是如何设置分页控件的相关属性及编写分页事件处理程序的?
2008-12-25 09:13 red2008
用的是 AspNetPager 7.0.2多语言版Dll文件及语言包卫星程序集<br>ANP702LanPack.rar<br><br>(http://www.webdiyer.com/download/download.aspx?id=2)
回复:请使用最新的7.2版,已经测试没有这个问题了。谢谢!
2008-12-25 09:11 red2008
Html输出:<br><!-- AspNetPager V7.0.2 for VS2005 & VS2008 Copyright:2003-2007 Webdiyer (www.webdiyer.com) --><br><br><div id="AspNetPager1" class="pagerCSS" style="width:500px;text-align:center;white-space:nowrap;"><br><div align="center" class="pagerCSS" style="width:60%;float:left;"> <a disabled="disabled" style="margin-right:5px;">首页</a><a disabled="disabled" style="margin-right:5px;">上一页</a><span style="margin-right:5px;font-weight:Bold;color:red;">1</span><a disabled="disabled" style="margin-right:5px;">下一页</a><a disabled="disabled" style="margin-right:5px;">尾页</a>&nbsp;&nbsp;转到<br> <input type="text" value="1" disabled="disabled" name="AspNetPager1_input" id="AspNetPager1_input" onkeydown="ANP_keydown(event,'AspNetPager1_btn');" style="width:30px;" /><br> 页<br> <input type="Submit" name="AspNetPager1" id="AspNetPager1_btn" value="Go" disabled="disabled" onclick="return ANP_checkInput('AspNetPager1_input',1)" /><br></div><br><div class="pagerInfo" style="float:left;width:40%;width:160px;fload:left;"><br><div class='pagerInfo'>[第1/1页, 15条/页]<br> <div> </div><br></div><br><!-- AspNetPager V7.0.2 for VS2005 & VS2008 End -->
回复:您好,这可能是7.0.2版的问题,请升级到最新的7.2版。谢谢!
2008-12-25 09:09 red2008
Aspx页面代码:<br><form id="form1" runat="server"><br> <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CenterCurrentPageButton="True"<br> CustomInfoHTML="<div class='pagerInfo'>[第%CurrentPageIndex%/%PageCount%页, %PageSize%条/页]<div>"<br> FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageIndexBoxType="TextBox"<br> PrevPageText="上一页" ShowCustomInfoSection="Right" ShowPageIndexBox="Always" SubmitButtonText="Go"<br> TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" CssClass="pagerCSS" CustomInfoClass="pagerInfo"<br> CustomInfoStyle="width:160px;fload:left;" HorizontalAlign="Center" Width="500px"<br> Wrap="False" PageSize="15" ><br> </webdiyer:AspNetPager><br> </form><br><br>Html输出:<br><br><!-- AspNetPager V7.0.2 for VS2005 & VS2008 Copyright:2003-2007 Webdiyer (www.webdiyer.com) --><br><div id="AspNetPager1" class="pagerCSS" style="width:500px;text-align:center;white-space:nowrap;"><br><div align="center" class="pagerCSS" style="width:60%;float:left;"><br> <a disabled="disabled" style="margin-right:5px;">首页</a><a disabled="disabled" style="margin-right:5px;">上一页</a><span style="margin-right:5px;font-weight:Bold;color:red;">1</span><a disabled="disabled" style="margin-right:5px;">下一页</a><a disabled="disabled" style="margin-right:5px;">尾页</a>&nbsp;&nbsp;转到<input type="text" value="1" disabled="disabled" name="AspNetPager1_input" id="As
回复:您好,我试了一下您的代码,没有发现输出的html中少了div结束标签的问题,我用的是7.2版,不知道您用的是哪个版本?谢谢!
2008-12-24 16:45 glc142636
已解决,不好意思。是我自己代码写错了一处
回复:谢谢支持!
2008-12-24 16:40 glc142636
大神好,请问UltraWebGrid能用本分页控件吗?我按以前gridview应用本控件的方法写了后没起作用