Asp > Code Snippets
Get the ansi value of a character
Ban a user based on their IP address
Ban a user based on IP address
Block more than one IP address
A CDonts example to send an email
get the character for a specified character code using the Chr function
Check email address using Regular expressions
Compare 2 strings using strComp
This copies a file called test.txt to test2.txt
This copies a folder called mydata to backupdata
Count words in a sentence
creates a folder called New Folder1
Create a text file called test.txt
This shows the date a file was created
This snippet shows how to display when a file was last accessed
Datediff example
This shows how to convert from degrees to radians and vice versa
Shows how to delete a file using the Delete method
This deletes a file if it exists using the DeleteFile method
Display all available drives on your system and displays
Display all files in a directory
Display ASP code on an HTML page
This checks if a drive exists , in this case C and displays a message
Send an email function
Factorial function
Fibonacci Value
this example shows when a file was last modified
This shows how to get various details of a file
Check if a file exists
This shows the file system in use on a drive
Find a word in a stringusing InStr
Find out part of a date using the DatePart function
This will display the path to a folder and the size of it in bytes
Display the size of a folder in bytes
This will insert text into a file
Log a visitors IP address in a text file
Length of a string using Len and Lenb
List all files in a folder
Move a file using the MoveFile method
This moves a folder called testfolder to testfolder1 on the d drive
This will check whether a number is odd or even
This opens a file and displays the contents
Page load time
Populate a combo box from an array
Redirect to other pages based on the selection from a radio button
Read a line of text from a file
Read all lines in a file
This example reads the first 10 characters of a file
Replace a word in a string with another
Reverse a string using strReverse
This shows how to send an e-mail using CDONTs
show how to send an attachment with your e-mail .
how to send an HTML formatted e-mail
Show all of a files attributes subroutine
Split a string using Split function
functions you can use to convert from celsius to fahrenheit or vice versa
This joins a number of substrings in an array and returns a string
This shows how to display the contents of a directory that the script is in
This shows how to use the Oct() and Hex() functions to convert
This simple piece of code will display all of the character
Trim spaces from a string
Upper or lower case conversions
Using DateDiff
Check if a date is valid
Validate numerical data example
User will only see content on a page once
View contents of your inbox
- ActiveX
- ADO
- Array
- Code Snippets
- Components
- Data Access
- Date Time
- Files
- Graphics
- HTML Formatting
- Mathematics
- Miscellaneous
- Sessions
- SQL
- Strings
- Techniques
- XML