CollectionPager QueryStringKey
Hello everybody
I have tried to my best to fix the changing the page but not successfully.
please help me how to customize the page by rewrite
like this "CollectionPager1.QueryStringKey = "travel/" & _
' Replace(LCase(dt.Tables(0).Rows(0).Item("GroupName ").ToString), " ", "-") & "/page-" & paging & ".html""
<cc1:CollectionPager ID="CollectionPager1" runat="server"
BackNextLocation="Split" BackText="« Prev " NextText=" Next » "
ResultsLocation="Top" BackNextLinkSeparator="" PageNumbersDisplay="Results"
ResultsStyle="PADDING:4px 4px 4px 4px ; FONT-WEIGHT: bold;"
PagingMode="QueryString" QueryStringKey="page">
</cc1:CollectionPager>
code behind
Public Sub LoadTourList(ByVal Gkey As String, Optional ByVal language As Boolean = False)
Dim AD As New clsTour
Dim paging As String = Request.QueryString("p")
Dim dt As Data.DataSet = AD.TourList(False, Gkey)
If dt.Tables.Count > 0 Then
Me.gvwBigTourList.DataSource = dt
Me.gvwBigTourList.DataBind()
CollectionPager1.MaxPages = 10000
CollectionPager1.PageSize = 10
CollectionPager1.DataSource = dt.Tables(0).DefaultView
CollectionPager1.BindToControl = gvwBigTourList
gvwBigTourList.DataSource = CollectionPager1.DataSourcePaged
'CollectionPager1.QueryStringKey = "travel/" & _
' Replace(LCase(dt.Tables(0).Rows(0).Item("GroupName ").ToString), " ", "-") & "/page-" & paging & ".html"
tbtour.Visible = True
Else
tbtour.Visible = False
tblsearch1.Visible = False
End If
this is the link that can help me to do this "http://tontip.blogspot.com/2009/04/pager-control-for-repeater-datalist-or.html"
dt.Dispose()
End Sub
Last edited by phuc2583; January 21st, 2010 at 03:22 AM..
Reason: lack of information
|