Gail1111
04-28-2003, 05:24 PM
I have two pages. Page one sends info via a Javascript prompt to page Two which receives the info into ASP code that generates a query statement-so far okay. Users get from Page One to Page Two using a text link.
Now, if page Two is loaded directly, I need to add to Page Two its own Javascript prompt that will take the input and pass it to the same ASP code to place inside a query statement (on the same page).
I am using a Session variable to hold the value that is being passed to the SQL statement.
this is what I have been trying:
<script language="javascript">
<!--
var PageTwoValue
PageTwoValue = prompt("your id","");
//
</script>
blah blah blah
<%
Session("id") = PageOneValue
Session("id") = PaeTwoValue
SQL statement using Session("id")
SQL results.
%>
I REALLY would appreciate help on this coding problem.
TY.
Gail1111:confused:
Now, if page Two is loaded directly, I need to add to Page Two its own Javascript prompt that will take the input and pass it to the same ASP code to place inside a query statement (on the same page).
I am using a Session variable to hold the value that is being passed to the SQL statement.
this is what I have been trying:
<script language="javascript">
<!--
var PageTwoValue
PageTwoValue = prompt("your id","");
//
</script>
blah blah blah
<%
Session("id") = PageOneValue
Session("id") = PaeTwoValue
SQL statement using Session("id")
SQL results.
%>
I REALLY would appreciate help on this coding problem.
TY.
Gail1111:confused: