Here is a detailed instruction for ASPRunnerPro 6.0:
- proceed to the Visual Editor tab, switch to HTML mode and add following code in any place where you want to show these buttons:
{$PreviousButton} {$NextButton}
2. add View page: Before display event on the Events tab.
Here is a sample code:
'Previous button
set rsExists = dal.
TableName.Query("
RecordID<" & values("
RecordID"),"
RecordID DESC")
if not rsExists.eof then
str = "<input type=button class=button value=Previous onclick=""window.location.href='
TableName_view.asp?editid1=" & rsExists("
RecordID") & "';"">"
xt.assign "PreviousButton",str
end if
rsExists.Close : set rsExists = Nothing
'Next Button
set rsExists = dal.
TableName.Query("
RecordID>" & values("
RecordID"),"
RecordID ASC")
if not rsExists.eof then
str = "<input type=button class=button value=Next onclick=""window.location.href='
TableName_view.asp?editid1=" & rsExists("
RecordID") & "';"">"
xt.assign "NextButton",str
end if
rsExists.Close : set rsExists = Nothing
where TableName is your actual table name, RecordID is your actual field name where key value is stored.