Monday, August 27, 2007

Pass info from page to another in ASP

in the main (Sender) page:
Example of if you click a LINK, it will jump to page2.asp with some info(name=ali-asp)

---- the code:
under the asp tag or in normal html:
open a (<) tag

write: a href="page2.asp?namr=ali-asp"
then close the tag (>)

then open the same tag (<) write : a then clise the tag (>)
All red to be in one line

in the other page: page2.asp

dim myvar
myvar=request.querystring("name")


or

response.write(request.querystring("name"))