留言簿

我要留言
留言搜索

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&lt;实体&gt;做数据源,不知道要设什么属性,页数据显示出来了,点下一页没效果,期待你的回复,如果可以发到我邮箱谢谢下面是代码:<br>页面:&lt;webdiyer:AspNetPager runat=&quot;server&quot; ID=&quot;AspNetPager2&quot; AlwaysShow=&quot;true&quot; ShowBoxThreshold=&quot;1&quot; FirstPageText=&quot;First&quot; LastPageText=&quot;Last&quot; NextPageText=&quot;Next&quot; PrevPageText=&quot;Prev&quot; Font-Names=&quot;Arial&quot; OnPageChanged=&quot;AspNetPager2_PageChanged&quot;&gt;&lt;/webdiyer:AspNetPager&gt;<br>CS代码<br>            List&lt;Products&gt; 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[&quot;page&quot;] != null)<br>{<br>   //use Request[&quot;page&quot;]<br>GetPage(sql, int.Parse(Request[&quot;page&quot;]), this.AspNetPager1.PageSize, out recordcount)<br>}<br>else<br>{<br>   //use Request[&quot;page&quot;]<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>&lt;!-- AspNetPager V7.0.2 for VS2005 &amp; VS2008  Copyright:2003-2007 Webdiyer (www.webdiyer.com) --&gt;<br><br>&lt;div id=&quot;AspNetPager1&quot; class=&quot;pagerCSS&quot; style=&quot;width:500px;text-align:center;white-space:nowrap;&quot;&gt;<br>&lt;div align=&quot;center&quot; class=&quot;pagerCSS&quot; style=&quot;width:60%;float:left;&quot;&gt; &lt;a disabled=&quot;disabled&quot; style=&quot;margin-right:5px;&quot;&gt;首页&lt;/a&gt;&lt;a disabled=&quot;disabled&quot; style=&quot;margin-right:5px;&quot;&gt;上一页&lt;/a&gt;&lt;span style=&quot;margin-right:5px;font-weight:Bold;color:red;&quot;&gt;1&lt;/span&gt;&lt;a disabled=&quot;disabled&quot; style=&quot;margin-right:5px;&quot;&gt;下一页&lt;/a&gt;&lt;a disabled=&quot;disabled&quot; style=&quot;margin-right:5px;&quot;&gt;尾页&lt;/a&gt;&amp;nbsp;&amp;nbsp;转到<br>  &lt;input type=&quot;text&quot; value=&quot;1&quot; disabled=&quot;disabled&quot; name=&quot;AspNetPager1_input&quot; id=&quot;AspNetPager1_input&quot; onkeydown=&quot;ANP_keydown(event,'AspNetPager1_btn');&quot; style=&quot;width:30px;&quot; /&gt;<br>  页<br>  &lt;input type=&quot;Submit&quot; name=&quot;AspNetPager1&quot; id=&quot;AspNetPager1_btn&quot; value=&quot;Go&quot; disabled=&quot;disabled&quot; onclick=&quot;return ANP_checkInput('AspNetPager1_input',1)&quot; /&gt;<br>&lt;/div&gt;<br>&lt;div class=&quot;pagerInfo&quot; style=&quot;float:left;width:40%;width:160px;fload:left;&quot;&gt;<br>&lt;div class='pagerInfo'&gt;[第1/1页, 15条/页]<br>  &lt;div&gt; &lt;/div&gt;<br>&lt;/div&gt;<br>&lt;!-- AspNetPager V7.0.2 for VS2005 &amp; VS2008 End --&gt;
回复:您好,这可能是7.0.2版的问题,请升级到最新的7.2版。谢谢!

2008-12-25 09:09  red2008

Aspx页面代码:<br>&lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;<br>    &lt;webdiyer:AspNetPager ID=&quot;AspNetPager1&quot; runat=&quot;server&quot; AlwaysShow=&quot;True&quot; CenterCurrentPageButton=&quot;True&quot;<br>        CustomInfoHTML=&quot;&lt;div class='pagerInfo'&gt;[第%CurrentPageIndex%/%PageCount%页, %PageSize%条/页]&lt;div&gt;&quot;<br>        FirstPageText=&quot;首页&quot; LastPageText=&quot;尾页&quot; NextPageText=&quot;下一页&quot; PageIndexBoxType=&quot;TextBox&quot;<br>        PrevPageText=&quot;上一页&quot; ShowCustomInfoSection=&quot;Right&quot; ShowPageIndexBox=&quot;Always&quot; SubmitButtonText=&quot;Go&quot;<br>        TextAfterPageIndexBox=&quot;页&quot; TextBeforePageIndexBox=&quot;转到&quot; CssClass=&quot;pagerCSS&quot; CustomInfoClass=&quot;pagerInfo&quot;<br>        CustomInfoStyle=&quot;width:160px;fload:left;&quot; HorizontalAlign=&quot;Center&quot; Width=&quot;500px&quot;<br>        Wrap=&quot;False&quot; PageSize=&quot;15&quot; &gt;<br>    &lt;/webdiyer:AspNetPager&gt;<br>    &lt;/form&gt;<br><br>Html输出:<br><br>&lt;!-- AspNetPager V7.0.2 for VS2005 &amp; VS2008  Copyright:2003-2007 Webdiyer (www.webdiyer.com) --&gt;<br>&lt;div id=&quot;AspNetPager1&quot; class=&quot;pagerCSS&quot; style=&quot;width:500px;text-align:center;white-space:nowrap;&quot;&gt;<br>&lt;div align=&quot;center&quot; class=&quot;pagerCSS&quot; style=&quot;width:60%;float:left;&quot;&gt;<br>	&lt;a disabled=&quot;disabled&quot; style=&quot;margin-right:5px;&quot;&gt;首页&lt;/a&gt;&lt;a disabled=&quot;disabled&quot; style=&quot;margin-right:5px;&quot;&gt;上一页&lt;/a&gt;&lt;span style=&quot;margin-right:5px;font-weight:Bold;color:red;&quot;&gt;1&lt;/span&gt;&lt;a disabled=&quot;disabled&quot; style=&quot;margin-right:5px;&quot;&gt;下一页&lt;/a&gt;&lt;a disabled=&quot;disabled&quot; style=&quot;margin-right:5px;&quot;&gt;尾页&lt;/a&gt;&amp;nbsp;&amp;nbsp;转到&lt;input type=&quot;text&quot; value=&quot;1&quot; disabled=&quot;disabled&quot; name=&quot;AspNetPager1_input&quot; id=&quot;As
回复:您好,我试了一下您的代码,没有发现输出的html中少了div结束标签的问题,我用的是7.2版,不知道您用的是哪个版本?谢谢!

2008-12-24 16:45  glc142636

已解决,不好意思。是我自己代码写错了一处
回复:谢谢支持!

2008-12-24 16:40  glc142636

大神好,请问UltraWebGrid能用本分页控件吗?我按以前gridview应用本控件的方法写了后没起作用
;