This is a migrated thread and some comments may be shown as answers.

RadDataPager SEOPaging and StackOverFlow

2 Answers 77 Views
ListView
This is a migrated thread and some comments may be shown as answers.
CHOVA
Top achievements
Rank 1
CHOVA asked on 01 Oct 2010, 04:04 PM
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 Answers, 1 is accepted

Sort by
0
CHOVA
Top achievements
Rank 1
answered on 01 Oct 2010, 07:37 PM
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
0
Mikolaj
Top achievements
Rank 1
answered on 02 Oct 2010, 06:06 PM
I have the same problem. Can you let me know how did you solve it?
Tags
ListView
Asked by
CHOVA
Top achievements
Rank 1
Answers by
CHOVA
Top achievements
Rank 1
Mikolaj
Top achievements
Rank 1
Share this question
or