Hi
i've done the Datagrid view but only problem with displaying pages
here is the code for Datagrid
-
<%
-
Dim I, iPageSize
-
-
iPageSize = 9 'Change pages
-
Dim arrPhotoNames
-
arrPhotoNames = Array("1", "2", "3", "4", _
-
"5", "6", "7", "8", _
-
"9", "10", "11", "12", _
-
"13", "14", "15", "16",_
-
"17", "18", "19", "20", _
-
"21", "22", "23", "24", "25")
-
-
-
%><table border="1" ><tr><%
-
-
For I = LBound(arrPhotoNames) To UBound(arrPhotoNames)
-
-
%><td align="center"><%
-
Response.Write arrPhotoNames(I)
-
%></td><%
-
' change this number but next number is less then previouse
-
' example 5 = 4 or 4 = 3 it's mod function
-
If I Mod 3 = 2 Then
-
%></tr><tr><%
-
End If
-
-
Next 'I
-
%>
-
what i would like to do now showing paging for display
1st 9 records on 1st page ( 1,2,3,4,5,6,7,8,9 )
2nd 9 records on 2nd page ( 10,11,12,13,14,15,16,17,18 )
3rd 9 records on 3rd page ( 19,20,21,22,23,24,25 ) & rest
this page will be automatically
important thing with this code is you can change the row & col with MOD Method
how can we show the paging ?
any body knows how to fix this code ?
thanks 4 reply & regards
Fary