www.fingertip.page.tl or www.fingertip.us.tt - Active Server Pages2.0
   
www.fingertip.us.tt
  Index
  Free WebHost&DNS
  Hardware&Networking
  Red Hat Enterprise Linux 5
  Active Server Page2.0
  => Active Server Pages2.0
  => ASP-1
  => ASP-1.1
  => ASP-2
  => ASP-3
  => ASP-4
  => ASP-5
  Database Coding Standards
  .Net Platform
  Link Website
  Online Game
  Satellite Image Home
  Download Toolbar
  Other
  WebMaster
  Counter
  SiteMap
  Guestbook
  To Contact Us
  IT People
  Website Grade
  Learn English
  Donate Money
  Comrades
  Free Dictionary
  VaaHOO

www.e-comwebsite.blogspot.com

Examples

 

Write text with ASP
This example demonstrates how to write text with ASP.

 

Format text with HTML tags in ASP
This example demonstrates how to combine text and HTML tags with ASP.

 

Redirect the user to a different URL
This example demonstrates how to redirect the user to a different URL.

 

Show a random link
This example demonstrates a link, each time you load the page, it will display one of two links: W3Schools.com! OR Refsnesdata.no! There is a 50% chance for each of them.

 

Controlling the buffer
This example demonstrates how you can control the buffer.

 

Clear the buffer
This example demonstrates how you can clear the buffer.

 

End a script in the middle of processing and return the result
This example demonstrates how to end a script in the middle of processing.

 

Set how many minutes a page will be cached in a browser before it expires
This example demonstrates how to specify how many minutes a page will be cached in a browser before it expires.

 

Set a date/time when a page cached in a browser will expire
This example demonstrates how to specify a date/time a page cached in a browser will expire.

 

Check if the user is still connected to the server
This example demonstrates how to check if a user is disconnected from the server.

 

Set the type of content
This example demonstrates how to specify the type of content.

 

Set the name of the character set
This example demonstrates how to specify the name of the character set.

 


 

Response Object

 

The ASP Response object is used to send output to the user from the server. Its collections, properties, and methods are described below:

 

Collections

 

Collection
Description
Sets a cookie value. If the cookie does not exist, it will be created, and take the value that is specified

 

Properties

 

Property
Description
Specifies whether to buffer the page output or not
Sets whether a proxy server can cache the output generated by ASP or not
Appends the name of a character-set to the content-type header in the Response object
Sets the HTTP content type for the Response object
Sets how long (in minutes) a page will be cached on a browser before it expires
Sets a date and time when a page cached on a browser will expire
Indicates if the client has disconnected from the server
Appends a value to the PICS label response header
Specifies the value of the status line returned by the server

 

Methods

 

Method
Description
Adds a new HTTP header and a value to the HTTP response
Adds a string to the end of the server log entry
Writes data directly to the output without any character conversion
Clears any buffered HTML output
Stops processing a script, and returns the current result
Sends buffered HTML output immediately
Redirects the user to a different URL
Writes a specified string to the output

 <html>
<body>

<%
response.write("Hello World!")
%>


</body>
</html>
 

 
formatting text with html

<html>

<body>
<%
response.write("<h2>You can use HTML tags to format the text!</h2>")
%>


<%
response.write("<p style='color:#0000ff'>This text is styled with the style attribute!</p>")
%>

</body>
</html>

 <html>

<body>

<%
dim name
name="Donald Duck"
response.write("My name is: " & name)
%>


</body>
</html>

 array
 

 

 

<html>
<body>

<%
Dim famname(5),i
famname(0) = "Jan Egil"
famname(1) = "Tove"
famname(2) = "Hege"
famname(3) = "Stale"
famname(4) = "Kai Jim"
famname(5) = "Borge"

For i = 0 to 5
      response.write(famname(i) & "<br />")
Next
%>


</body>
</html>

 

Looping

 <html>

<body>

<%
dim i
for i=1 to 6
   response.write("<h" & i & ">Header " & i & "</h" & i & ">")
next
%>


</body>
</html

Time-based greeting using VBScript
 

 
<html>
<body>
<%
dim h
h=hour(now())

response.write("<p>" & now())
response.write(" (Norwegian Time) </p>")
If h<12 then
   response.write("Good Morning!")
else
   response.write("Good day!")
end if
%>

</body>
</html>

 
 
<%@ language="javascript" %>

<html>

<body>

<%

var d=new Date()

var h=d.getHours()

Response.Write("<p>")

Response.Write(d + " (Norwegian Time)")

Response.Write("</p>")

if (h<12)

   {

   Response.Write("Good Morning!")

   }

else

   {

   Response.Write("Good day!")

   }

%>

</body>

</html>
 
 
 
<html>

<body>

<%

name = "Bill Gates"

response.write(ucase(name))

response.write("<br>")

response.write(lcase(name))

%>

</body>

</html>

<html>

<body>

<%

name = " W3Schools "

response.write("visit" & name & "now<br />")

response.write("visit" & trim(name) & "now<br />")

response.write("visit" & ltrim(name) & "now<br />") 

response.write("visit" & rtrim(name) & "now")

%>
 

<html>

<body>

<%

sometext = "Hello Everyone!"

response.write(strReverse(sometext))

%>

</body>

</html>

 
<html>

<body>

<%

i = 48.66776677

j = 48.3333333

response.write(Round(i))

response.write("<br>")

response.write(Round(j))

%>

</body>

</html>
 

 

</body>

</html>

 

Locations of visitors to this page





Comments on this page:
Comment posted by elenasoove( elenaalferovaantonmotolko.com ), 11/17/2017 at 8:34pm (UTC):
Согласно данным RaiNews24, магнитуда землетрясения составила 7,1.<a href=http://inbiom.ru/>http://inbiom.ru/</a>,<a href=http://eit-ws.ru/>http://eit-ws.ru/</a>,<a href=http://bi-tex.com/>http://bi-tex.com/</a>

Comment posted by Alekseygroog( vyguzova_1976mail.ru ), 11/17/2017 at 8:11pm (UTC):

<a href=>usarl Smappicaidere neosebloni</a>
<a href=>FeceAcepegup Unceld hogs</a>
<a href=>PewS Cammaamurf Tounny</a>
Neut CuptNaippethift Nopselebriree

Comment posted by PamDRale( maryruckerregiopost.top ), 11/17/2017 at 8:04pm (UTC):
payday express <a href="https://paydayadvanceonline.science">cash til payday loan</a> payday loans for bad credit <a href=https://paydayadvanceonline.science>fast loans no credit check</a> slut cams <a href="https://slutcams.webcam">slut cams</a> fetish cams <a href=https://slutcams.webcam>cam chat</a> small payday loans <a href="https://instantpaydayloans.loan">small payday loans</a> instant payday loans <a href=https://instantpaydayloans.loan>the best online payday loans</a> paper writing <a href="https://writingservices.trade">writing personal essays for college</a> writing services <a href=https://writingservices.trade>writing services</a> essays help <a href="https://essayshelp.cricket">essays help</a> online theses and dissertations <a href=https://essayshelp.cricket>essays help</a> instant payday loans <a href="https://instantonlineloans.science">emergency loans no credit check</a> instant online loans <a href=https://instantonlineloans.science>instant online loans</a>

Comment posted by Alekseygroog( vyguzova_1976mail.ru ), 11/17/2017 at 7:09pm (UTC):

<a href=>usarl Smappicaidere neosebloni</a>
<a href=>FeceAcepegup Unceld hogs</a>
<a href=>PewS Cammaamurf Tounny</a>
Neut CuptNaippethift Nopselebriree

Comment posted by EduardNew( kokubeeva.1997mail.ru ), 11/17/2017 at 6:00pm (UTC):

<a href=>kt reutty Wees</a>
<a href=>Shedo jigmeme BatAvaiptediva</a>
<a href=>Seacledearee Reogapappybobby amance</a>
plems ei margybom



Add comment to this page:
Your Name:
Your Email address:
Your website URL:
Your message:

   

=> Do you also want a homepage for free? Then click here! <=