Archive

Archive for September, 2008

HTML,ASP, .NET Codes ….. P1

September 29, 2008 Leave a comment

 
INDEX 
  • HTML page auto refresh
  • Pass info from page to another in ASP
 
 
 
_________________________________________________________________________
————————————————————————————-
 
HTML page auto refresh
 
This code will refresh the page after X second
 
< meta http-equiv="refresh" content="5; URL=http://www.a site to go for/ " >
 
content="5" the time before refresh
URL is the target web page
_________________________________________________________________________________
 
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 close 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"))

Done..
_________________________________________________________________________________________
 

 

Categories: ASP, .NET, HTML Code