ASP
Posted on
October 29th, 2008 0 Comments
The IsValidEmail function checks for a valid email, IsValidEmail returns True if the email address is a valid email, IsValidEmail returns false if the email address isn’t proper syntax. The code is well commented and should explain what is happening .
This code checks for @ and a . period sign as well as only acceptable characters. i.e. if a user have entered...
Read More |
Make a Comment
Posted on
October 12th, 2008 0 Comments
This is a very simple ASP function that will capitalise the first letter of the input string. Some time user do enters his/her name as with out capatalising first letter of the name. So this function can take care of whether a use enters name as “david” or “DAVID” and this function will make it more readable like “David”.
'*******************************************************
'*...
Read More |
Make a Comment
Posted on
October 11th, 2008 0 Comments
This is a small ASP function that will return a random number between two numbers. It will takes two numbers (maximum & minimum) numbers and generate a random number within that range. It will geenrate a random number every time the function is called. Quite handy function for general purpose use where a random number is needed in ASP.
'*******************************************************
'*...
Read More |
Make a Comment
Posted on
September 9th, 2008 0 Comments
This is a very simple programme that demonstrate how to block specified IP addresses from accessing the website or webpages. In this code I used array to store the IP adresses but database can also be used to store the IP adresses. You can redirect the user to a specified page of restrict it to specified pages or no access pages.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'*******************************************************
'*...
Read More |
Make a Comment