RadDataPager SEOPaging and StackOverFlow

3 posts, 0 answers
  1. CHOVA
    CHOVA avatar
    4 posts
    Member since:
    Jul 2010

    Posted 01 Oct 2010 Link to this post

    Hi,

    I use this code :
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            ProviderName="System.Data.SqlClient" SelectCommandType="StoredProcedure"  SelectCommand="Net_DepechesTest"  />
      
    <telerik:RadListView ID="Liste" DataSourceID="SqlDataSource1"  runat="server"  ClientIDMode="Static"
                    onitemdatabound="Liste_ItemDataBound" AllowPaging="True" ItemPlaceholderID="ArticlesHolder"  DataKeyNames="IDDepeche" PageSize="15">
                    <LayoutTemplate>
                        <telerik:RadDataPager ClientIDMode="Static" ID="PagerUp" SEOPagingQueryPageKey="pager"  AllowSEOPaging="true" runat="server" PagedControlID="Liste" PageSize="15" Visible='<%# Container.PageCount != 1%>'>
                            <Fields>                                
                                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                <telerik:RadDataPagerTemplatePageField><PagerTemplate>Page(s) : </PagerTemplate></telerik:RadDataPagerTemplatePageField>
                            </Fields>
                         </telerik:RadDataPager>
                         <div id="ListDepeches">
                            <asp:Panel ID="ArticlesHolder" ClientIDMode="Static" runat="server" />
                         </div>
                         <telerik:RadDataPager ClientIDMode="Static" ID="PagerDown" SEOPagingQueryPageKey="pager" AllowSEOPaging="true" runat="server" PagedControlID="Liste" PageSize="15" Visible='<%# Container.PageCount != 1%>'>
                            <Fields>                                
                                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                <telerik:RadDataPagerTemplatePageField><PagerTemplate>Page(s) : </PagerTemplate></telerik:RadDataPagerTemplatePageField>
                            </Fields>
                         </telerik:RadDataPager>
                    </LayoutTemplate>
                    <ItemTemplate>
                            <asp:Literal ID="LesArticles" runat="server"></asp:Literal>
                    </ItemTemplate>
                    <EmptyDataTemplate>Aucune actualité disponible</EmptyDataTemplate>
                </telerik:RadListView>

    When i call this page, i have 28 records and so 2 pages of results.
    If i click on the second page (paging number or next button), my url change to "mypage.aspx?pager=2" and all is allright !!.

    Now i decide to modify directly my url to "mypage.aspx?pager=3" (3 is for example, but is the same with a number superior to the Max Pages showing "2"). And that is my problem !!, the page call a StackOverFlow Error on my WeDevServer and in Production on a IIS 7.5 !. My Application Pool Stop and never restart !

    Can someone help me, if you understand my english :o)
  2. CHOVA
    CHOVA avatar
    4 posts
    Member since:
    Jul 2010

    Posted 01 Oct 2010 Link to this post

    just for community information :

    I found the solution of this problem.
    This bug come from the SQLDataSource and the combination of RadDataPager and ASP.NET Routing system.

    bye
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mikolaj
    Mikolaj avatar
    2 posts
    Member since:
    Jun 2010

    Posted 02 Oct 2010 Link to this post

    I have the same problem. Can you let me know how did you solve it?
Back to Top