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

asp:AspNetPager取不到后台的值

<webdiyer:AspNetPager ID="webPager" runat="server" NextPageText="下一页" PrevPageText="上一页"
                  PrevNextButtonsClass="cpbFirstLast" CssClass="paginator" FirstLastButtonsClass="cpbFirstLast"
                  CurrentPageButtonClass="cpb" FirstPageText="首页" LastPageText="尾页" ShowInputBox="Never"
                  PageSize="1" EnableUrlRewriting="true" UrlRewritePattern="./areaid=%a%"
                  FirstPageUrlRewritePattern="./areaid=%a%" CustomInfoTextAlign="Right" NumericButtonCount="5"
                  CustomInfoHTML="共%PageCount%页,当前为第%CurrentPageIndex%页,每页%PageSize%条"
                  SubmitButtonText="转到">
                </webdiyer:AspNetPager> 

其中的UrlRewritePattern="./areaid=%a%"取不到后台定义的public int a = 0;的值,不知什么原因?

------解决方案--------------------
你请教一下这个控件的创始人
杨涛
------解决方案--------------------
%a%表示url中参数a的值,不是后台的值