I need help with paging, please.
In the below code snippet, I need to give users the ability to click on the "Next" button to view the next record.
Then also allow them to be able to return to previous record with the "Previous" button.
The users want it in this format.
I tried to integrate everything into this code but without success.
I then wrote two additional asps, one MoveNex and one MovePrev such that once you click the "Next" or "Previous" button it calls one of the asps to perform that action.
Problem is none is working.
I have spent a week trying to make it work.
Please help me!
<TR>
<TD bgcolor=khaki COLSPAN=2 BGCOLOR=WHITE ALIGN=CENTER>
<!INPUT TYPE=SUBMIT VALUE="Update"-->
<!INPUT TYPE=RESET VALUE="Reset"-->
<INPUT TYPE=BUTTON VALUE="Next" OnClick="location='co_applicant.asp'">
<INPUT TYPE=BUTTON VALUE="Previous" OnClick="location='co_applicant.asp'">
<INPUT TYPE=BUTTON VALUE="Add Record" OnClick="location='new_applicant.asp'">
<INPUT TYPE=BUTTON VALUE="Delete Record" OnClick="location='del_rec.asp?ssnum=????'">
<INPUT TYPE=BUTTON VALUE="Find" OnClick="location='getRecs.asp'">
<INPUT TYPE=BUTTON VALUE="Main Menu" onClick="location='main_menu.asp'">
</TD>
</TR>
*******************************
This is moveNext, similar to MovePrevious
*******************************
<%@ Language=VBScript%>
<%Option Explicit%>
<%Response.buffer=true%>
Dim RecSet As Object 'Recordset
<%
RecSet.MoveNext 'Move to next record
Response.Redirect "view_recs.asp"
%>
Thanks in advance
In the below code snippet, I need to give users the ability to click on the "Next" button to view the next record.
Then also allow them to be able to return to previous record with the "Previous" button.
The users want it in this format.
I tried to integrate everything into this code but without success.
I then wrote two additional asps, one MoveNex and one MovePrev such that once you click the "Next" or "Previous" button it calls one of the asps to perform that action.
Problem is none is working.
I have spent a week trying to make it work.
Please help me!
<TR>
<TD bgcolor=khaki COLSPAN=2 BGCOLOR=WHITE ALIGN=CENTER>
<!INPUT TYPE=SUBMIT VALUE="Update"-->
<!INPUT TYPE=RESET VALUE="Reset"-->
<INPUT TYPE=BUTTON VALUE="Next" OnClick="location='co_applicant.asp'">
<INPUT TYPE=BUTTON VALUE="Previous" OnClick="location='co_applicant.asp'">
<INPUT TYPE=BUTTON VALUE="Add Record" OnClick="location='new_applicant.asp'">
<INPUT TYPE=BUTTON VALUE="Delete Record" OnClick="location='del_rec.asp?ssnum=????'">
<INPUT TYPE=BUTTON VALUE="Find" OnClick="location='getRecs.asp'">
<INPUT TYPE=BUTTON VALUE="Main Menu" onClick="location='main_menu.asp'">
</TD>
</TR>
*******************************
This is moveNext, similar to MovePrevious
*******************************
<%@ Language=VBScript%>
<%Option Explicit%>
<%Response.buffer=true%>
Dim RecSet As Object 'Recordset
<%
RecSet.MoveNext 'Move to next record
Response.Redirect "view_recs.asp"
%>
Thanks in advance