how to pass variable to the other page?

georgepatotk

Contributor
Joined
Mar 1, 2004
Messages
432
Location
Malaysia
I am doing this but it can't work. can you please have a look for me? Please

dim vari as string= "Hello"
dim path as string="/search.aspx"

dim aLink as string = "<A Href=" & path & "?ToBePassed=vari target=ResultFrame> Page </a>"

It can't work over href & target

do you have any example on this this kind of task? Thanks.
 
dim aLink as string = "<A Href='" & path & "?ToBePassed=" & vari &"' target=ResultFrame> Page </a>"
 
There's three way of doing things.

1. Add it to the address bar
2. Use cookies to store NON-VITAL information
3. Use the attribute Form from the Response object

I'll talk about the third...

Request.Form can access information that have been passed by a previous page that made a submit with the method when you use the method post (or is it get ???).

But for your problem... you can try to use the cookies but you could encounter some IE that don't like them.

If your Data isn't sensitive enough... just use
Response.Redirect with some ?Name=Value&Name2=Value2

That's all !
 
Back
Top