Greetings again Paul,
Your first solution worked like a charm.
Code:
<form id="frmSort">
<td>
<%If Cint(iMore) > 0 then
if iMore > iRecsPerPage then iMore = iRecsPerPage
Response.Write("<a href=""#"" onclick=""javascript:var form = document.getElementById('frmSort'); form.elements.page.value = " & iPage+1 & "; form.submit();"">")
Response.Write("Next</a> (" & iMore & ") >>")
Else
Response.Write(" ")
End If%>
</td>
I appreciate your excellent help with this. I do have another question though,
once the user clicks on the next button, to get back to the previous page, I am assuming it would be the same code but with different variables correct?
For example the original code for the " Previous Page " link:
Code:
<form id="frmSort">
<%If iPage > 1 then
Response.Write("<< <a href=""#"" onclick=""javascript:document.frmSort('page').value=" & iPage-1 & ";document.frmSort.submit();"">")
Response.Write("Previous</a> (" & iRecsPerPage & ")")
Else
Response.Write(" ")
End If%>
And I would replace it with the following correct?
Code:
<%If iPage > 1 then
Response.Write("<< <a href=""#"" onclick=""javascript:var form = document.getElementById('frmSort'); form.elements.page.value = " & iPage-1 & "; form.submit();"">")
Response.Write("Previous</a> (" & iRecsPerPage & ")")
Else
Response.Write(" ")
End If%>
The reason I ask this about the " Previous Page " is when I replaced the code with the new when it gets back to the starting search page, there is still a " Previous " link there when there shouldn't be and it attempts to go back another 15 records when its at the first 15 starting records.
Any suggestions?
Thank you,
David
Bookmarks