% 'The following three lines of code are used to ensure that this page is not cached on the client. Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "no-cache" Response.Expires = -1 if session("UID")="" then Response.Redirect "Default.asp" Response.End end if %> <% set data = server.createobject("ADODB.RecordSet") data.activeconnection = strDB data.source = "SELECT * FROM Products ORDER BY item_number asc" data.PageSize = 10 data.CacheSize = 5 data.CursorLocation = 3 data.open If Len(Request("pagenum")) = 0 Then data.AbsolutePage = 1 Else If CInt(Request("pagenum")) <= data.PageCount Then data.AbsolutePage = Request("pagenum") Else data.AbsolutePage = 1 End If End If %>
|
|
|||||||||||
|
|||||||||||
|
|||||||||||