Active Server Pages: Server-Side Scripting

Functions and Procedures

abs (n: number)

Function. Returns the absolute value of n.

chr (asciicharcode: number)

Function. Returns a string containing the ASCII character specified by asciicharcode.

For a list of ASCII characters and character codes, see http://www.microsoft.com/workshop/author/newhtml/htmlr018.htm.
 

date

Function. Returns the current system date as a string.

day (thedate: string)

Function. Extracts the day of the month from thedate and returns it as a number.

hour (thetime: string)

Function. Extracts the hour value from thetime and returns it as a number.

left (thestring: string, n: number)

Function. Returns a string containing the first n characters of thestring.

len (thestring: string)

Function. Returns  the number of characters in thestring.

minute (thetime: string)

Function. Extracts the minutes value from thetime and returns it as a number.

month (thedate: string)

Function. Extracts the month value from thedate and returns it as a number.

monthname (themonth: number)

Function. Returns a string containing the name of the month whose number is specified by themonth.

now

Function. Returns the current system date and time.

Request.Form (fieldname: string)

Function. Returns the contents of the field whose name is fieldname.

ServerVariables

Request.ServerVariables ("HTTP_User-Agent")

Function. Returns the client browser type as a string.

Request.ServerVariables ("REMOTE_ADDR")

Function. Returns the client's IP (Internet protocol) address as a string.

Request.ServerVariables ("REMOTE_HOST")

Function. Returns the client's domain name as a string.

Request.ServerVariables ("SERVER_NAME")

Function. Returns the domain name of the server as a string. If the server has no domain name, returns the server's IP address as a string.

Additional ServerVariables

Response.redirect (anotherURL: string)

Procedure. Redirects the current request to one specified by anotherURL.

right (thestring: string, n: number)

Function. Returns a string containing the last n characters of thestring.

second (thetime: string)

Function. Extracts the seconds value from thetime and returns it as a number.

Server.URLEncode (thestring: string)

Function. Converts thestring from a string to a URL by "escaping" certain characters. For example, each space character is replaced with %20. Returns the URL.

time

Function. Returns the current system time as a string.

timevalue (thetime: string)

Function. Extracts the time value from thetime and returns it as a string.
 

weekday (thedate: string)

Function. Extracts the weekday value from thedate and returns it as a number.

weekdayname (weekday: number)

Function. Returns a string containing the name of the weekday whose number is specified by weekday.

year (thedate: string)

Function. Extracts the year value from thedate and returns it as a number.

Operators

The following operators are supported in ASP server-side scripts:
  • Addition (+)
  • And
  • Assignment (=)
  • Concatenation (&)
  • Division (/)
  • Exponentiation (^)
  • Is
  • Equals (=)
  • Greater Than (>)
  • Greater Than or Equal to (>=)
  • Less Than (>)
  • Less Than or Equal to (>=)
  • Mod
  • Multiplication (*)
  • Negation (-)
  • Not
  • Not Equal To (<>)
  • Or
  • Subtraction (-)
  • Xor









   



MSN Nick Name



More Resources...





Most Viewed Services:
  1. HTML Tutorial
  2. XHTML Tutorial
  3. CSS Tutorial
  4. Javascript Tutorial
  5. DHTML Tutorial
  6. VB Script
  7. TCP/IP Tutorial
  8. ADO Tutorial
  9. MYSQL Tutorial
  10. ASP Tutorial
  11. AJAX Tutorial
  12. CFML Tutorial
  13. PHP Tutorial
  14. WML Tutorial
  15. FLASH Tutorial
  16. XML Tutorial
  17. RSS Tutorial
  18. SQL Tutorial
  19. HTML Articles
  1. Javascript Articles
  2. PHP Articles
  3. SEO Articles
  4. Web Design Articles
  5. SEO Tips
  6. Web Design Tips
  7. Articles
  8. CSS
  9. CSS Tips
  10. HTML Tips
  11. JAVASCRIPT Tips
  12. MYSQL Tips
  13. PHP Tips
  14. Money
  15. Tutorials
  16. Web Hosting



  • Home
  • Web Directory
  • Top Directoriers
  • Webmaster Directories
  • Contact
  • © Copyright 2006-2010 All Rights Reserved By CodeDcode.Com : HTML : RSS : TEXT : XML