|
-
May 15th, 2013, 02:09 AM
#1
Thread Starter
Member
Pagination sample, somebody can help me??
Hi
I've been doing a Pagination Sample, and when to run it in the browser I get the following
http://localhost/example/?=2 or http://localhost/example/?=9
This is the code I'm doing
Code:
Protected Function DisplayPaging(ByVal index As Integer) As String
If (PagedData.CurrentPageIndex + 1) = index Then
PagingCont += "<b> " + index.ToString() + " </b>"
Else
PagingCont += " <a href=""" + Request.CurrentExecutionFilePath + "?=" & index.ToString() & """>" + index.ToString() + "</a> "
End If
Return PagingCont
End Function
Protected Sub btFirst_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
Response.Redirect(Request.CurrentExecutionFilePath & "?=1")
End Sub
Protected Sub btPrevious_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
Response.Redirect(Request.CurrentExecutionFilePath & "?=" & (PagedData.CurrentPageIndex))
End Sub
Protected Sub btNext_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
Response.Redirect(Request.CurrentExecutionFilePath & "?=" & (PagedData.CurrentPageIndex + 2))
End Sub
Protected Sub btLast_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
Response.Redirect(Request.CurrentExecutionFilePath & "?=" & (PagedData.PageCount))
End Sub
my question is, how I can make it for me then appears in the browser
http://localhost/example/2 or http://localhost/example/9
???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|