Home > ASP, .NET, HTML Code > HTML,ASP, .NET Codes ….. P1

HTML,ASP, .NET Codes ….. P1


 
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..
_________________________________________________________________________________________
 

 

Advertisements
Categories: ASP, .NET, HTML Code
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: