|
 |
asp_databases thread: how can send a variable from one page in ASP to another one
Message #1 by "Ahmed Barradah" <havana200@h...> on Fri, 23 Mar 2001 22:43:54
|
|
Hi everyone,
I have a small question. How can I send a variable from one page in
ASP to another page in ASP without using forms. Thank you for your help
Ahmed
Message #2 by Naeema Mushaimea <nsameeao@y...> on Fri, 23 Mar 2001 21:43:12 -0800 (PST)
|
|
Ahmed,
You can a variable through ASP page without form
by using the following way:
1- If the variable will be changed:
<% Response.Redirect
"TargetPageName.ASP?VariableName=" & VariableValue %>
2- If the variable fixed:
<%Response.Redirect
"TargetPageName.ASP?VariableName=VariableValue"%>
I hope it work.
=================================
--- Ahmed Barradah <havana200@h...> wrote:
>
>
> Hi everyone,
> I have a small question. How can I send a
> variable from one page in
> ASP to another page in ASP without using forms.
> Thank you for your help
>
> Ahmed
>
Message #3 by "Andrew Haslett" <scooter@p...> on Sat, 24 Mar 2001 17:02:29 +1030
|
|
You can pass them in a querystring.. ie <a href
"nextpage.asp?variable1=value1&variable2=value2>click here</a>. (Note: You
may need to URLENCODE this data)
OR
You could initiate application or session level variables which are
available as long as the application / session is current. ie.
ie. session("variable1") = value1
application("variable2") = value2
which can be called as such:
response.write (session("variable1"))
etc.
HTH,
Andrew
-----Original Message-----
From: Ahmed Barradah [mailto:havana200@h...]
Sent: Friday, 23 March 2001 10:44 PM
To: ASP Databases
Subject: [asp_databases] how can send a variable from one page in ASP to
another one
Hi everyone,
I have a small question. How can I send a variable from one page in
ASP to another page in ASP without using forms. Thank you for your help
Ahmed
Message #4 by "Dallas Martin" <dmartin@z...> on Sat, 24 Mar 2001 07:57:31 -0500
|
|
Use cookies or the querystring.
response.redirect("newpage.asp?somevalue=1&someothervalue=JONES")
----- Original Message -----
From: "Ahmed Barradah" <havana200@h...>
To: "ASP Databases" <asp_databases@p...>
Sent: Friday, March 23, 2001 10:43 PM
Subject: [asp_databases] how can send a variable from one page in ASP to
another one
>
>
> Hi everyone,
> I have a small question. How can I send a variable from one page in
> ASP to another page in ASP without using forms. Thank you for your help
>
> Ahmed
|
|
 |