What does the procedure do? VBScript procedures in ASP run on the server, so at best the procedure can return some text to the browser. Do what njs12345 is saying, make the link:
<a href=“http://myserver.com/PageWithProcedure.asp?arg=somevalue”>Click Me</a>
Then in the ASP page do:
If Len(Request.QueryString("arg")) > 0 Then
Call MyProcedure(Request.QueryString("arg))
End If
The procedure writes a table filled with information from a recordset. I know that there are other ways to do record navigation, like using querystrings and such, but wanted to try this.
Basically here is the layout I was trying to achieve…
Open recordset
fill array with recordset rows
close record set
Sub FillTable(direction)
if direction = 1
Display next record using array
else
Display previous record using array
End Sub
Then at the bottom I would have the links saying
Prev and Next that would call the procedure to fill the table without having to load a new page.
So Sub FillTables is VBScript running on the client side? Because if it is not running on the client side, then you would still have to reload the page anyway to run that procedure. And, if it is running on the client side it will only work with IE.