There are a few ways to pass data between pages.
1) You can use Session variables.
In page1.asp set the variable...
Code:
Dim tblSearch: tblSearch = "MyTable"
Session("tblSearch") = tblSearch
In page2.asp read the variable...
Code:
Dim tblSearch: tblSearch = Session("tblSearch")
2) You can pass the data in the Querystring (appended to the URL)
In page1.asp redirect the user...
Code:
Dim tblSearch: tblSearch = "MyTable"
Response.Redirect("page2.asp?tblSearch=" & Server.URLEncode(tblSearch))
In page2.asp read the query string variable
Code:
Dim tblSearch: tblSearch = Request.Querystring("tblSearch")
3) You can store the data in hidden form fields, the user then submits those values along with the form when he presses a submit button.
In page1.asp do this...
Code:
<%
Dim tblSearch: tblSearch = "MyTable"
%>
<form name="frm1" action="page2.asp" method="post">
<input type="hidden" name="tblSearch" value="<%=tblSearch%>">
<input type="submit" name=submit1 value="Submit">
</form>
In page2.asp do this...
Code:
Dim tblSearch: tblSearch = Request.Form("tblSearch")
Hope that helps.
-Charles Forsyth